Shorten path: fix escaping on both bash and zsh
Thanks to polyphemus (Rolf Morel) for the catch!
This commit is contained in:
parent
252526f36e
commit
b50f9e2e9e
@ -584,9 +584,11 @@ _lp_shorten_path()
|
||||
fi
|
||||
# Escape special chars
|
||||
if $_LP_SHELL_bash; then
|
||||
LP_PWD="${ret/\\/\\\\}"
|
||||
LP_PWD="${ret//\\/\\\\}"
|
||||
else # zsh
|
||||
LP_PWD="${ret/%/%%}"
|
||||
#LP_PWD="${ret//%/%%}" # This doesn't work :( zsh bug?
|
||||
p='%'
|
||||
LP_PWD="${ret//$p/%%}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user