aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-02 15:57:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-02 15:57:37 -0300
commit9039fd411934413a750ff77eab4d8c632b3e5741 (patch)
tree8cf0a20f19050d4d47c4cb0b0ced920f85ccca69 /shell
parent5585ddfc0b7098900a916cf581736f3601d4c7db (diff)
downloadtermplex-9039fd411934413a750ff77eab4d8c632b3e5741.tar.gz
termplex-9039fd411934413a750ff77eab4d8c632b3e5741.tar.bz2
Fix: positional argument handling
Diffstat (limited to 'shell')
-rwxr-xr-xshell6
1 files changed, 5 insertions, 1 deletions
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