From 9039fd411934413a750ff77eab4d8c632b3e5741 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 2 Aug 2024 15:57:37 -0300 Subject: Fix: positional argument handling --- shell | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell b/shell index df569e9..84e95d7 100755 --- a/shell +++ b/shell @@ -60,7 +60,11 @@ fi window_title $DEST # Shift args -shift 2 +if [ -z "$COMMAND" ]; then + shift +else + shift 2 +fi # Dispatcher if [ "$BASENAME" == "shells" ]; then -- cgit v1.2.3