From: Arun Prakash Jana Date: Wed, 21 Jul 2021 06:24:40 +0000 (+0530) Subject: Add option to specify arguments to exec X-Git-Tag: v4.2~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=14663b964b5ad0197eeb61fe598ea15a836dbf9f;p=nnn.git Add option to specify arguments to exec --- diff --git a/plugins/nuke b/plugins/nuke index 86eb5fe8..04115666 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -520,10 +520,14 @@ handle_bin() { application/x-executable|application/x-shellscript) clear echo '-------- Executable File --------' && file --dereference --brief -- "${FPATH}" - printf "Run executable (y/N)? " + printf "Run executable (y/N/'a'rgs)? " read -r answer case "$answer" in [Yy]* ) exec "${FPATH}";; + [Aa]* ) + printf "args: " + read -r args + exec "${FPATH}" "$args";; [Nn]* ) exit;; esac esac