Avoid external TR when replacing , with space.

No need for an external tool, Bash can do a global literal substitution itself.
This commit is contained in:
Ingo Karkat
2012-01-07 23:17:38 +01:00
committed by Gina Trapani
parent 8744167827
commit fda31ea260

View File

@@ -999,7 +999,7 @@ case $action in
# Split multiple depri's, if comma separated change to whitespace separated
# Loop the 'depri' function for each item
for item in $(echo $* | tr ',' ' '); do
for item in ${*//,/ }; do
getTodo "$item"
if [[ "$todo" = \(?\)\ * ]]; then
@@ -1023,7 +1023,7 @@ case $action in
# Split multiple do's, if comma separated change to whitespace separated
# Loop the 'do' function for each item
for item in $(echo $* | tr ',' ' '); do
for item in ${*//,/ }; do
getTodo "$item"
# Check if this item has already been done