aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-21 03:12:23 -0700
committerMattias Andrée <maandree@operamail.com>2012-07-21 03:12:23 -0700
commitca0fffcd618d23cf00d9ea0959f84323b415085b (patch)
tree2edbd4d1f2e845533a12d831184ecd45eecffd89 /ponysay
parent4cfde927f3dd456d2c4315f7eca6fe65c0f3351f (diff)
parent57fdde2f5e78abf097a0af2249031989de2ef0b5 (diff)
downloadponysay-ca0fffcd618d23cf00d9ea0959f84323b415085b.tar.gz
ponysay-ca0fffcd618d23cf00d9ea0959f84323b415085b.tar.bz2
ponysay-ca0fffcd618d23cf00d9ea0959f84323b415085b.zip
Merge pull request #50 from etu/master
Updated ponysay to support names like "Apple Jack" and list.pl to format those names
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay b/ponysay
index c856fd2..4a73cbe 100755
--- a/ponysay
+++ b/ponysay
@@ -270,7 +270,7 @@ while getopts $opts OPT; do
case ${OPT} in
v) version; exit ;;
h) usage; exit ;;
- f) ponies+=( "$OPTARG" ) ;;
+ f) ponies=($(echo $OPTARG | sed -e 's/ //g' -e 's/,/\n/')) ;;
l) list; exit ;;
L) linklist; exit ;;
W) wrap="$OPTARG" ;;