Skip to content

Commit ec5a126

Browse files
committed
Always quote string arguments.
1 parent c29e407 commit ec5a126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/chruby/chruby.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function chruby_find()
2626
"$1") match="$ruby_dir" && break ;;
2727
*"$1"*) match="$ruby_dir" ;;
2828
esac
29-
done <<< $(chruby_list)
29+
done <<< "$(chruby_list)"
3030

3131
echo -n "$match"
3232
}
@@ -108,7 +108,7 @@ function chruby()
108108
else
109109
echo " ${ruby_name}"
110110
fi
111-
done <<< $(chruby_list)
111+
done <<< "$(chruby_list)"
112112
;;
113113
system) chruby_reset ;;
114114
*)

0 commit comments

Comments
 (0)