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: Greg Wooledge
Subject: Re: [Help-bash] questions about errexit, pipes to while loops
Date: Thu, 29 Mar 2012 08:13:02 -0400
User-agent: Mutt/1.4.2.3i

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.



reply via email to

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