1
0
Fork 0

Escape &'s in path name. Need to find general function for escaping all

shell metacharacters.
pull/1/merge
Matt Cable 15 years ago
parent 870551e960
commit 21e2a913bf

@ -5,7 +5,8 @@
# Run dirpersiststore in ~/.zlogout
dirpersiststore () {
dirs -p | sed 's/ /\\ /g;s/^/pushd -q /;1!G;h;$!d;' > ~/.zdirstore
# FIXME: need to escape all shell metacharacters, not just spaces!
dirs -p | sed 's/ /\\ /g;s/&/\\&/;s/^/pushd -q /;1!G;h;$!d;' > ~/.zdirstore
}
dirpersistrestore () {

Loading…
Cancel
Save