|
From: | Dmitry Bolshakov |
Subject: | exit-on-error (set -e) option and command after "if" not found |
Date: | Wed, 22 Jun 2011 16:51:24 +0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
Hi set -e if nosuchcommand | grep blabla then echo ERROR: blabla was found exit 1 fi echo it was unexpected for me, I thougt this line should not be echoed (bash 4.1.10(4)-release) -- With best regards Dmitry Bolshakov
[Prev in Thread] | Current Thread | [Next in Thread] |