aboutsummaryrefslogtreecommitdiff
path: root/bindings.bb
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-11 12:48:37 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-11-11 12:48:37 -0800
commitdbd558f6e2caac58e147cff8371a7d6f5700b39e (patch)
tree5da7e82af32180250f3f2f35e07257cd3dd5a250 /bindings.bb
parente96004d50e96f53151ec0d99e3ae47c775c05376 (diff)
Fix for creating files/dirs with "--"
Diffstat (limited to 'bindings.bb')
-rw-r--r--bindings.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings.bb b/bindings.bb
index 42b8e25..7cc60a5 100644
--- a/bindings.bb
+++ b/bindings.bb
@@ -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
;;