help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] questions about errexit, pipes to while loops


From: Jonathan Baccash
Subject: Re: [Help-bash] questions about errexit, pipes to while loops
Date: Thu, 29 Mar 2012 15:28:30 +0000

Heh, I am slow aren't I.... Anyways, I wasn't trying to bash bash. (It is my 
favorite shell.) I was just trying to suggest that retrofitting a more 
hands-free error handling strategy onto bash might be an interesting idea. Not 
sure how it would work though...

Jon.

-----Original Message-----
From: Greg Wooledge [mailto:address@hidden
Sent: Thursday, March 29, 2012 5:13 AM
To: Jonathan Baccash
Cc: address@hidden
Subject: Re: [Help-bash] questions about errexit, pipes to while loops

On Wed, Mar 28, 2012 at 05:16:03PM +0000, Jonathan Baccash wrote:
> Without set -e, the behavior is
> basically "if you want to die when something fails, check for
> yourself",

Yay!  He gets it!

> which is pretty much in conflict with the approach of most popular
> programming languages (exception handling) today

The thing is, the Bourne shell *isn't* a "popular programming language of 
today".  It's from the early 1970s.  Error handling in the shell is just like 
error handling in C, which was developed at the same time by the same people.

And Bash is just the Bourne Again Shell.

________________________________

The contents of this e-mail and any attachments are confidential and only for 
use by the intended recipient. Any unauthorized use, distribution or copying of 
this message is strictly prohibited. If you are not the intended recipient 
please inform the sender immediately by reply e-mail and delete this message 
from your system. Thank you for your co-operation.



reply via email to

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