Skip to content
Browse files

When parsing the ruby shebang, escape the '#'

Escape the hash in the shell pattern when parsing the shebang.
Used for the ruby shebang '#!/usr/bin/env ruby' for example.
  • Loading branch information...
1 parent 9179052 commit 447a48dfa77909ea2ab4d5d008975d82e2937c6f hmalphettes committed Aug 20, 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 447a48d

Please sign in to comment.
Something went wrong with that request. Please try again.