[Top][All Lists]

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

Re: using `set -e' in a subshell

From: Felipe Kellermann
Subject: Re: using `set -e' in a subshell
Date: Sun, 27 Mar 2005 15:52:35 -0300 (BRST)
User-agent: Pine <http://www.washington.edu/pine/>

On Sun, 27 Mar 2005 7:43pm  +0200, Jim Meyering wrote:

> Hi,
> Is the following behavior intended?

Hi Jim,
Yes. I've seen Chet replying to this subject sometimes here.

>   # Solaris 5.9's /bin/sh
>   $ echo a; (set -e; false; echo foo) && echo b
>   a

I've just tried using AT&T's ksh93:
$ ksh --version
  version         sh (AT&T Labs Research) 1993-12-28 q
$ echo a; (set -e; false; echo foo) && echo b

Would not be the case of reporting this to Sun? I'm not aware of any other 
shell that is interpreting that construction the same way Solaris sh does.

Felipe Kellermann

reply via email to

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