Fix for creating files/dirs with "--"
This commit is contained in:
parent
e96004d50e
commit
dbd558f6e2
@ -137,11 +137,11 @@ Ctrl-n: # New file/directory
|
|||||||
case "$(printf '%s\0' File Directory | pick "Create new: ")" in
|
case "$(printf '%s\0' File Directory | pick "Create new: ")" in
|
||||||
File)
|
File)
|
||||||
ask name "New File: " || exit
|
ask name "New File: " || exit
|
||||||
touch "$name"
|
touch -- "$name"
|
||||||
;;
|
;;
|
||||||
Directory)
|
Directory)
|
||||||
ask name "New Directory: " || exit
|
ask name "New Directory: " || exit
|
||||||
mkdir "$name"
|
mkdir -- "$name"
|
||||||
;;
|
;;
|
||||||
*) exit
|
*) exit
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user