On 7/13/12 11:17 AM, Daniel Amthor wrote:
> Chet,
> 
> 2012/7/13 Chet Ramey <chet.ra...@case.edu <mailto:chet.ra...@case.edu>>
> 
>     On 7/13/12 8:53 AM, Daniel Amthor wrote:
> 
>     Yeah, that's an assignment error.  Posix says a non-interactive shell
>     should exit in that case and that an interactive shell should write an
>     error message without exiting.  Bash doesn't exit the shell, but it does
>     cause the current command to fail.
> 
> So...works as designed ?

Yes.  I think aborting the shell script is a little drastic, but bash does
it in Posix mode.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/



Reply via email to