undo $@ to $* change per discussion

This commit is contained in:
Jesse Plamondon-Willard 2022-07-28 21:47:21 -04:00
parent 5371dc3fce
commit ab34b6142d
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ if [ "$(uname)" == "Darwin" ]; then
if [ "$USE_CURRENT_SHELL" == "false" ]; then if [ "$USE_CURRENT_SHELL" == "false" ]; then
echo "Reopening in the Terminal app..." echo "Reopening in the Terminal app..."
echo '#!/bin/sh' > /tmp/open-smapi-terminal.command echo '#!/bin/sh' > /tmp/open-smapi-terminal.command
echo "\"$0\" $* --use-current-shell" >> /tmp/open-smapi-terminal.command echo "\"$0\" $@ --use-current-shell" >> /tmp/open-smapi-terminal.command
chmod +x /tmp/open-smapi-terminal.command chmod +x /tmp/open-smapi-terminal.command
cat /tmp/open-smapi-terminal.command cat /tmp/open-smapi-terminal.command
open -W /tmp/open-smapi-terminal.command open -W /tmp/open-smapi-terminal.command
@ -114,27 +114,27 @@ else
terminal|termite) terminal|termite)
# consumes only one argument after -e # consumes only one argument after -e
# options containing space characters are unsupported # options containing space characters are unsupported
exec "$TERMINAL_NAME" -e "env TERM=xterm $LAUNCH_FILE $*" exec "$TERMINAL_NAME" -e "env TERM=xterm $LAUNCH_FILE $@"
;; ;;
xterm|konsole|alacritty) xterm|konsole|alacritty)
# consumes all arguments after -e # consumes all arguments after -e
exec "$TERMINAL_NAME" -e env TERM=xterm $LAUNCH_FILE "$*" exec "$TERMINAL_NAME" -e env TERM=xterm $LAUNCH_FILE "$@"
;; ;;
terminator|xfce4-terminal|mate-terminal) terminator|xfce4-terminal|mate-terminal)
# consumes all arguments after -x # consumes all arguments after -x
exec "$TERMINAL_NAME" -x env TERM=xterm $LAUNCH_FILE "$*" exec "$TERMINAL_NAME" -x env TERM=xterm $LAUNCH_FILE "$@"
;; ;;
gnome-terminal) gnome-terminal)
# consumes all arguments after -- # consumes all arguments after --
exec "$TERMINAL_NAME" -- env TERM=xterm $LAUNCH_FILE "$*" exec "$TERMINAL_NAME" -- env TERM=xterm $LAUNCH_FILE "$@"
;; ;;
kitty) kitty)
# consumes all trailing arguments # consumes all trailing arguments
exec "$TERMINAL_NAME" env TERM=xterm $LAUNCH_FILE "$*" exec "$TERMINAL_NAME" env TERM=xterm $LAUNCH_FILE "$@"
;; ;;
*) *)