Re: break exit status

2014-07-06 Thread Dan Douglas
On Sunday, July 06, 2014 10:04:17 AM Dan Douglas wrote: > Frustratingly I'm pretty sure there isn't even a possible hackish eval or > alias workaround. Haha nevermind. I guess Bash in non-POSIX mode expands an aliased "done" keyword. shopt -s expand_aliases alias done='done; (exit "$_sta

Re: break exit status

2014-07-06 Thread Dan Douglas
On Sunday, July 06, 2014 09:08:00 AM gregrwm wrote: > if break would preserve the exit status of the preceding command then the > above loop would have a useful exit status. Completely agree. > an option analogous to pipefail could request the better break behaviour Needless to say, POSIX requir