[Top][All Lists]

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

Re: set -e (no || or &&)

From: Steven W. Orr
Subject: Re: set -e (no || or &&)
Date: Fri, 12 Oct 2012 16:28:05 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

On 10/12/12 06:55, quoth Sergey Fadeev:
Why doesn't it exit the shell?
  $ set -e
  $ echo $(false)
  Shouldn't the error code of $(false) command substitution be checked by set 
-e before passing stdout to the echo builtin?
  Isn't it the most logical behavior that most people would expect of set -e?
  Bash version: GNU bash, version 4.2.24(1)-release (x86_64-redhat-linux-gnu) 
(if it matters)

Seriously, can we just put a trap on all messages to this list that have the string 'set -e' in it? Just point the sender to a message that tells them to not use it. We could even tell them that the functionality is a huge misteak that was perpetrated upon the whole of mankind and that we're all just really really sorry that it ever happened. In fact the author of this message is probably dead from having generated an error by explaining it while his dash e was set.

So, in conclusion, I would like to say on behalf of the FS community and mankind in general that you should not use -e any more. If it would help, I'd be willing to spend about $10 for maximum postage to send this announcement to The Proper Address so that everyone would know about this For Ever More.

I'm sorry. I'm sorry that I'm sorry. And, I'm sorry that I'm sorrowful about feeling sorry.

Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

reply via email to

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