From 57fdde2f5e78abf097a0af2249031989de2ef0b5 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 21 Jul 2012 10:39:24 +0200 Subject: Support ponies by name like "Apple Jack" --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ;; -- cgit