bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: type -p return status is 0 if alias found


From: Chet Ramey
Subject: Re: type -p return status is 0 if alias found
Date: Mon, 09 Apr 2007 11:31:52 -0400
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

address@hidden wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: cygwin
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
> -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'
> -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
> -DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS   -I.
> -I/home/eblake/bash-3.2.9-11/src/bash-3.2
> -I/home/eblake/bash-3.2.9-11/src/bash-3.2/include
> -I/home/eblake/bash-3.2.9-11/src/bash-3.2/lib   -O2 -pipe 
> uname output: CYGWIN_NT-5.1 aa-04991 1.5.24(0.156/4/2) 2007-01-31 10:57
> i686 Cygwin
> Machine Type: i686-pc-cygwin
>  
> Bash Version: 3.2
> Patch Level: 9
> Release Status: release
>  
> Description:
>    "type -p CMD" normally has a non-zero return status if CMD is not
> found.  But if CMD is an alias, the return status is zero even though
> nothing is printed to stdout.

It is found; just not the particular type of file `type -p' looks
for.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]