aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-04-01 07:14:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-04-01 07:14:48 -0700
commit8853f053225f5f63d2210f6989b6ea4823a09aae (patch)
tree7e67caaf6bdc5ec9a9ba0d90aa263aec127a0828
parent87af028f47d8d5d840586f9cc2f72738bd11e80d (diff)
downloadbasta-8853f053225f5f63d2210f6989b6ea4823a09aae.tar.gz
basta-8853f053225f5f63d2210f6989b6ea4823a09aae.tar.bz2
basta-8853f053225f5f63d2210f6989b6ea4823a09aae.zip
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.
-rw-r--r--basta.sh3
1 files changed, 2 insertions, 1 deletions
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 $?