diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-20 03:57:45 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-20 03:58:11 +0200 |
commit | 37ad5f43df0d83301447c659340570d8d2637912 (patch) | |
tree | 05b59f0e789fd24a6331a4ca1b9f0b662f60b57c | |
parent | a95fa2f96df72eba30e8348c8526677f27b906b1 (diff) | |
download | sdn-37ad5f43df0d83301447c659340570d8d2637912.tar.gz sdn-37ad5f43df0d83301447c659340570d8d2637912.tar.xz sdn-37ad5f43df0d83301447c659340570d8d2637912.zip |
README.adoc: avoid unnecessary quotes for bash
Word expansion is not performed there.
-rw-r--r-- | README.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/README.adoc b/README.adoc index d51dc76..bedacd6 100644 --- a/README.adoc +++ b/README.adoc @@ -91,12 +91,12 @@ sdn-navigate () { READLINE_LINE= while eval "`sdn "$SDN_L" "$(sdn-cursor)"`"; do - [[ -z "$cd" ]] || cd "$cd" - [[ -z "$insert" ]] || { + [[ -z $cd ]] || cd "$cd" + [[ -z $insert ]] || { SDN_L="${SDN_L:0:$SDN_P}$insert ${SDN_L:$SDN_P}" ((SDN_P=SDN_P+${#insert}+1)) } - [[ -z "$helper" ]] && break + [[ -z $helper ]] && break /bin/sh -c "$helper" || break done } |