From 8853f053225f5f63d2210f6989b6ea4823a09aae Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 1 Apr 2025 07:14:48 -0700 Subject: fullscreen: bug: calculate args after removing options. * basta.sh (basta.fullscreen): We must take the arguments for the program after recognizing and removing the function's options, otherwise we treat those options as part of the command. --- basta.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basta.sh b/basta.sh index a2823bb..f2fc432 100644 --- a/basta.sh +++ b/basta.sh @@ -315,7 +315,6 @@ basta.fullscreen() local saveterm= local force= local ttyfd - local args=$(printf "%q " "$@") while true; do case $1 in @@ -336,6 +335,8 @@ basta.fullscreen() shift done + local args=$(printf "%q " "$@") + if ! [ -t 1 ] && ! [ $force ] ; then eval command $args return $? -- cgit v1.2.3