many bugfix, fixed getopt split

This commit is contained in:
2026-10-13 16:01:13 +02:00
parent b5be992d82
commit ba1e07744e
22 changed files with 478 additions and 125 deletions
+11 -8
View File
@@ -97,11 +97,8 @@ _fun_stop_on_key()
kill "$pid" 2>/dev/null
}
wait "$pid" 2>/dev/null
if [[ -n "$old_int" ]]; then
eval "$old_int"
else
trap - INT
fi
trap - INT
_trap_restore "$old_int"
return 0
}
export -f _fun_stop_on_key
@@ -129,7 +126,9 @@ busy()
return 1
fi
# Restore the getopt-normalised (shell-quoted) argument list
eval set -- "$PARSED"
local -a _pargs=()
_getopt_split _pargs "$PARSED"
set -- "${_pargs[@]}"
while true; do
case "$1" in
@@ -219,7 +218,9 @@ fake_compile()
return 1
fi
# Restore the getopt-normalised (shell-quoted) argument list
eval set -- "$PARSED"
local -a _pargs=()
_getopt_split _pargs "$PARSED"
set -- "${_pargs[@]}"
while true; do
case "$1" in
@@ -421,7 +422,9 @@ hack()
return 1
fi
# Restore the getopt-normalised (shell-quoted) argument list
eval set -- "$PARSED"
local -a _pargs=()
_getopt_split _pargs "$PARSED"
set -- "${_pargs[@]}"
while true; do
case "$1" in