help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] subtle "break" strangeness


From: Chet Ramey
Subject: Re: [Help-bash] subtle "break" strangeness
Date: Tue, 03 Sep 2013 11:00:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 9/3/13 10:53 AM, Chris Down wrote:
> On 2013-09-03 10:16, Chet Ramey wrote:
>> How can it?  The subshell started to run `break' understands that it is
>> running in a loop -- it inherits that understanding from its parent --
>> but there is no way to communicate the `breaking' status from a child
>> back to its parent.
> 
> Like I said in the other thread, I think that we should reset context-specific
> flags in children (except for when the child is the entirety of the function
> definition, in the case of function definitions).

Except where they are required to persist -- for inheriting `set -e'
exceptions, for example.  Then you have even more of an inconsistent
mess.

Chet
- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIl+XEACgkQu1hp8GTqdKvwjQCfSROIjekdcTcS9jfTzKuWp3Dx
Z40AoJLmErJKBtY2reV5Kni8lpQgcBWS
=VgbW
-----END PGP SIGNATURE-----



reply via email to

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