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

Re: shell kung-fu with set -e, return codes and i/o redirection in while read ... loop



In <20090719235708.GB22995@resivo.wgnet.de>, Jonas Meurer wrote:
>- in cryptdisks_{start|stop} only one device is setup anyway. here I
>  simply don't use set -e and check for the error code instead.

While I understand your goal here, I think you should try and accomplish it 
while leaving the entire script "set -e".  It helps prevent errors from 
cascading.  Even if you are checking return values for everything now, you 
might not be so disciplined with changes in the future.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: