Fix for creating files/dirs with "--"

This commit is contained in:
Bruce Hill 2019-11-11 12:48:37 -08:00
parent e96004d50e
commit dbd558f6e2

View File

@ -137,11 +137,11 @@ Ctrl-n: # New file/directory
case "$(printf '%s\0' File Directory | pick "Create new: ")" in
File)
ask name "New File: " || exit
touch "$name"
touch -- "$name"
;;
Directory)
ask name "New Directory: " || exit
mkdir "$name"
mkdir -- "$name"
;;
*) exit
;;