Skip to content

Commit 52dae19

Browse files
committed
Always quote string arguments.
1 parent 4c994cb commit 52dae19

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
}
@@ -111,7 +111,7 @@ function chruby()
111111
else
112112
echo " ${ruby_name}"
113113
fi
114-
done <<< $(chruby_list)
114+
done <<< "$(chruby_list)"
115115
;;
116116
system) chruby_reset ;;
117117
*)

0 commit comments

Comments
 (0)