bug-bash
[Top][All Lists]
Advanced

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

Re: set -e not working as expected with conditional operators


From: Robert Elz
Subject: Re: set -e not working as expected with conditional operators
Date: Fri, 02 Jun 2023 14:55:48 +0700

    Date:        Fri, 02 Jun 2023 01:01:08 +0000
    From:        rpaufin1 <rpaufin1@proton.me>
    Message-ID:  
<b6Qf9n6uqY4yb6FfMBYJE77H6afl-RivIiHB-QebKSLpJcAOHKSkYMy2clD18YUdVEIuwZ85vJrT1riWnFcFE0_8GHUHtoUSMyxK-qidccI=@proton.me>

  | What's going on here? I'm using the latest release, Bash 5.2.15.

Bash is doing what it it is supposed to be doing.   Just don't use -e
unless you are an expert in what it actually means, and once you're
that, you'd almost never consider using it in any normal script.   It
is intended for make to use, and nothing else (there are a few, very
unusual, cases where it can help - but if you script contains any logic
at all, it isn't one of those cases).

kre




reply via email to

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