|
![](/i/fill.gif) |
Am 24.02.2013 12:52, schrieb Orchid Win7 v1:
> On 24/02/2013 12:06 AM, Warp wrote:
>> All programs should return an error code if an error happens. If a
>> program
>> ends in error but returns a success code, that program is broken
>
> I agree. However, unfortunately it seems that by default Bash ignores
> all such errors and happily proceeds, unless you manually suffix every
> single command with an explicit return-code check.
#!/bin/bash -e
Have fun!
Post a reply to this message
|
![](/i/fill.gif) |