mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
Handle -- as flag terminator in sudo wrapper
This commit is contained in:
@@ -412,6 +412,7 @@ _ksi_deferred_init() {
|
||||
is_sudoedit="y"
|
||||
builtin break;
|
||||
fi
|
||||
[[ "$arg" == "--" ]] && builtin break # end of options
|
||||
[[ "$arg" != -* && "$arg" != *=* ]] && builtin break # command found
|
||||
done
|
||||
if [[ "$is_sudoedit" == "y" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user