summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sbang6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sbang b/bin/sbang
index 6ceff42e66..5c9ad37acd 100755
--- a/bin/sbang
+++ b/bin/sbang
@@ -103,10 +103,10 @@ interpreter_f="${interpreter_v[0]}"
# Invoke any interpreter found, or raise an error if none was found.
if [[ -n "$interpreter_f" ]]; then
- if [[ "${interpreter_f##*/}" = "perl" ]]; then
- exec $interpreter_v -x "$@"
+ if [[ "${interpreter_f##*/}" = "perl"* ]]; then
+ exec $interpreter -x "$@"
else
- exec $interpreter_v "$@"
+ exec $interpreter "$@"
fi
else
echo "error: sbang found no interpreter in $script"