aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-10-04 23:01:31 +0200
committerTeddy Wing2017-10-04 23:01:31 +0200
commitc66735aced2373be9902d35c7f45267c8257ba21 (patch)
tree68d3b5c4add67ae6206d7a1224f8565d29c5f16d
parentd72c0c18af130dac31329bdafb08a8ea48b0a669 (diff)
parent357eb2484bf58ed202b072b94fff54d81fe0fb49 (diff)
downloadqcd-c66735aced2373be9902d35c7f45267c8257ba21.tar.bz2
Merge branch 'fix-change-command-sed-substitution-escaping-for-bash-4'
-rwxr-xr-xqcd2
1 files changed, 1 insertions, 1 deletions
diff --git a/qcd b/qcd
index 4cb18fa..091ba1a 100755
--- a/qcd
+++ b/qcd
@@ -60,7 +60,7 @@ function __qcd_change_shortcut () {
path=$(__qcd_absolute_path "$path")
# The `//\//\/` escapes slashes in the path so that `sed` doesn't complain
- sed -i.bak -E "s/^${shortcut} .+$/${shortcut} ${path//\//\/}/" $QCD_DATABASE_FILE
+ sed -i.bak -E "s/^${shortcut} .+$/${shortcut} ${path//\//\\/}/" $QCD_DATABASE_FILE
fi
}