|
![](/i/fill.gif) |
>>> #!/bin/bash -e
>>>
>>> Have fun!
>>
>> I think you mean "set -e", but anyway...
>
> Allegedly the above syntax is supposed to work, too. Provided of course
> that it's the very first line of the script.
According to the manpage I read, it's supposed to work anywhere in the
script, so you can turn the feature on and off at will.
I especially love how set -e turns it ON and set +e turns it OFF. I
think that's really special...
Post a reply to this message
|
![](/i/fill.gif) |