From 87af028f47d8d5d840586f9cc2f72738bd11e80d Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 19 Mar 2025 12:27:33 -0700 Subject: fullscreen: regression: no args in non-fulscreen case. * basta.sh (basta.fullscreen): Move the calculation of the args variable to the top. It was not yet set in the case when we run the command without fullscreen and return (because standard output is not a TTY, and -f had not been specified). --- basta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basta.sh b/basta.sh index 9dff193..a2823bb 100644 --- a/basta.sh +++ b/basta.sh @@ -315,6 +315,7 @@ basta.fullscreen() local saveterm= local force= local ttyfd + local args=$(printf "%q " "$@") while true; do case $1 in @@ -354,7 +355,6 @@ basta.fullscreen() printf $'\e7\e[1;%sr\e8' $realrows >&$ttyfd stty rows $realrows <&$ttyfd - local args=$(printf "%q " "$@") LINES=$realrows eval command $args || exit=$? if [ $saveterm ] ; then -- cgit v1.2.3