Add option to specify arguments to exec

This commit is contained in:
Arun Prakash Jana 2021-07-21 11:54:40 +05:30
parent 3f07a8ca76
commit 14663b964b
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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