diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-12-02 15:39:20 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-12-02 15:39:20 +0100 |
commit | 8f07e7658dcdfecc082ddaaad8e26f460eb02d45 (patch) | |
tree | a16ecc9a433b450827fbd056b06a3260592a8a37 /Functions/VCS_Info/VCS_INFO_reposub | |
parent | df234cd62d04180a54071c7a2a5210d1f16c8b98 (diff) | |
parent | 56aa469d06a60ff23fe0c50ab9d44ae40c150412 (diff) | |
download | zsh-8f07e7658dcdfecc082ddaaad8e26f460eb02d45.tar.gz zsh-8f07e7658dcdfecc082ddaaad8e26f460eb02d45.zip |
Merge branch 'upstream' into debian
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_reposub')
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_reposub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_reposub b/Functions/VCS_Info/VCS_INFO_reposub index 0fab863f1..1c16f0e7b 100644 --- a/Functions/VCS_Info/VCS_INFO_reposub +++ b/Functions/VCS_Info/VCS_INFO_reposub @@ -5,9 +5,9 @@ setopt localoptions extendedglob NO_shwordsplit local base=${1%%/##} -[[ ${PWD} == ${base}/* ]] || { +[[ $(pwd -P) == ${base}/* ]] || { printf '.' return 1 } -printf '%s' ${PWD#$base/} +printf '%s' ${$(pwd -P)#$base/} return 0 |