Permalink
Browse files

Keep individual numbers separate

Instead of interpreting input "1 3 2 6 8" as "13268", treat spaces
as commas then condense.
  • Loading branch information...
patricklucas committed Nov 15, 2011
1 parent 7736c9e commit cf1269b47b73376d75fcb88135b143f53c46144f
Showing with 1 addition and 1 deletion.
  1. +1 −1 spark
View
2 spark
@@ -147,7 +147,7 @@ else
fi
# Trim spaces to allow input like '1, 2, 3'
-data=$(echo $data | tr -d ' ')
+data=$(echo $data | tr -s ' ' ',')
setup_array $data
print_ticks $data

0 comments on commit cf1269b

Please sign in to comment.