mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-15 04:11:42 +02:00
30114: VCS_INFO_check_com: Remove a superfluous stat()
This commit is contained in:
parent
69a6df462c
commit
0d15215d86
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2012-01-16 Frank Terbeck <ft@bewatermyfriend.org>
|
||||||
|
|
||||||
* 30111: Src/exec.c: Fix segfaults with exec options.
|
* 30111: Src/exec.c: Fix segfaults with exec options.
|
||||||
|
@ -15865,5 +15870,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5563 $
|
* $Revision: 1.5564 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -9,7 +9,7 @@ case $1 in
|
||||||
[[ -x $1 ]] && return 0
|
[[ -x $1 ]] && return 0
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
(( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0
|
(( ${+commands[$1]} )) && return 0
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in a new issue