From 1ec0b0b04969a132d205f52e5ed2d24f7b96ea48 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 8 Apr 2025 00:38:26 -0700 Subject: fullscreen: bug: quote $args in the eval line. * basta.sh (basta.fullscreen): The args that we calculated with the help of printf %q is shell syntax; it must be double quoted when we eval. --- basta.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basta.sh b/basta.sh index f2fc432..90f91d2 100644 --- a/basta.sh +++ b/basta.sh @@ -338,7 +338,7 @@ basta.fullscreen() local args=$(printf "%q " "$@") if ! [ -t 1 ] && ! [ $force ] ; then - eval command $args + eval command "$args" return $? fi @@ -356,7 +356,7 @@ basta.fullscreen() printf $'\e7\e[1;%sr\e8' $realrows >&$ttyfd stty rows $realrows <&$ttyfd - LINES=$realrows eval command $args || exit=$? + LINES=$realrows eval command "$args" || exit=$? if [ $saveterm ] ; then printf $'\e[?1049l' >&$ttyfd -- cgit v1.2.3