aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorElis Axelsson <elis.axelsson@gmail.com>2012-07-21 10:39:24 +0200
committerElis Axelsson <elis.axelsson@gmail.com>2012-07-21 10:39:24 +0200
commit57fdde2f5e78abf097a0af2249031989de2ef0b5 (patch)
treeefda58de2f1d5637f3561226b49c4a5c71dd373d /ponysay
parent40164221fbae896ba14715fa0c01cbb56a426105 (diff)
downloadponysay-57fdde2f5e78abf097a0af2249031989de2ef0b5.tar.gz
ponysay-57fdde2f5e78abf097a0af2249031989de2ef0b5.tar.bz2
ponysay-57fdde2f5e78abf097a0af2249031989de2ef0b5.zip
Support ponies by name like "Apple Jack"
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" ;;