mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
Escape &'s in path name. Need to find general function for escaping all
shell metacharacters.
This commit is contained in:
parent
751f34c962
commit
87920fb111
@ -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…
Reference in New Issue
Block a user