Remove ' from comment in subshell

On OpenBSD's sh this causes a "no closing quote" error.
This commit is contained in:
codesoap 2019-06-05 15:04:27 +02:00
parent 1ebea85e6f
commit 7c8c5ad506

View File

@ -54,7 +54,7 @@ The program passed as argument will be executed in the new terminal' \
# would be nicer to do in a single sed/awk call but that's difficult # would be nicer to do in a single sed/awk call but that's difficult
args=$( args=$(
for i in "$@"; do for i in "$@"; do
# special case to preserve empty variables as sed won't touch these # special case to preserve empty variables as sed will not touch these
if [ "$i" = '' ]; then if [ "$i" = '' ]; then
printf "'' " printf "'' "
else else