diff options
author | Frank Terbeck <bewater@users.sourceforge.net> | 2012-01-19 16:57:40 +0000 |
---|---|---|
committer | Frank Terbeck <bewater@users.sourceforge.net> | 2012-01-19 16:57:40 +0000 |
commit | 0d15215d86737a93a7ee284bc8f25b19ecabbe7f (patch) | |
tree | 8a43377b8e58aa5b25ea0238ee226d8d10c1c99b | |
parent | 69a6df462c6231041979fea56e74ee8264c3f798 (diff) | |
download | zsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.tar.gz zsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.tar.xz zsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.zip |
30114: VCS_INFO_check_com: Remove a superfluous stat()
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_check_com | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index cf82ae205..159b0b7b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-19 Frank Terbeck <ft@bewatermyfriend.org> + + * 30114: Functions/VCS_Info/VCS_INFO_check_com: Remove a + superfluous stat(). + 2012-01-16 Frank Terbeck <ft@bewatermyfriend.org> * 30111: Src/exec.c: Fix segfaults with exec options. @@ -15865,5 +15870,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5563 $ +* $Revision: 1.5564 $ ***************************************************** diff --git a/Functions/VCS_Info/VCS_INFO_check_com b/Functions/VCS_Info/VCS_INFO_check_com index d9f7a1330..1b86593a1 100644 --- a/Functions/VCS_Info/VCS_INFO_check_com +++ b/Functions/VCS_Info/VCS_INFO_check_com @@ -9,7 +9,7 @@ case $1 in [[ -x $1 ]] && return 0 ;; (*) - (( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0 + (( ${+commands[$1]} )) && return 0 esac return 1 |