bug-bash
[Top][All Lists]
Advanced

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

Re: set -- `echo $foo; exit 1` doesn't return the exit code 1


From: Chet Ramey
Subject: Re: set -- `echo $foo; exit 1` doesn't return the exit code 1
Date: Mon, 22 Apr 2002 10:15:27 -0400

> Machine Type: i686-pc-cygwin
> 
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
> 
> Description:
>   Hi there,
> 
>    The following line of code
> 
>    set -- `echo $foo; exit 1`
> 
>    doesn't return the exit code 1.

Because POSIX.2 says that `set' returns 0 under those circumstances.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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