Permalink
Browse files

Merge pull request #48 from hmalphettes/shell-shebang-bad-pattern

When parsing the ruby shebang, escape the '#'
  • Loading branch information...
2 parents 9179052 + 447a48d commit 89ab1ab5d1154cc96b71d4b3edd6943f77a2c075 @mpapis mpapis committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/internal/shell/extensions/execution/functions
View
2 core/internal/shell/extensions/execution/functions
@@ -43,7 +43,7 @@ __sm.extension.actions.type()
case "${shebang}" in
*ruby|*rbx|*jruby|*macruby)
- binary="${shebang##*(#|!)}"
+ binary="${shebang##*(\#|!)}"
binary="${binary##* }"
action_type="ruby"
;;

0 comments on commit 89ab1ab

Please sign in to comment.