1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-22 08:21:02 +02:00

30114: VCS_INFO_check_com: Remove a superfluous stat()

This commit is contained in:
Frank Terbeck 2012-01-19 16:57:40 +00:00
parent 69a6df462c
commit 0d15215d86
2 changed files with 7 additions and 2 deletions
ChangeLog
Functions/VCS_Info

View file

@ -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 $
*****************************************************

View file

@ -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