Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16103

Re: Exclamation mark does not work with set -e

Path csiph.com!fu-berlin.de!usenet.stanford.edu!not-for-mail
From Chris Down <chris@chrisdown.name>
Newsgroups gnu.bash.bug
Subject Re: Exclamation mark does not work with set -e
Date Mon, 6 Apr 2020 15:50:53 +0100
Lines 11
Approved bug-bash@gnu.org
Message-ID <mailman.255.1586184659.2644.bug-bash@gnu.org> (permalink)
References <2f74-5e8b3d80-85-5823c700@26668721> <20200406145053.GA489646@chrisdown.name>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
X-Trace usenet.stanford.edu 1586184660 20788 209.51.188.17 (6 Apr 2020 14:51:00 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To "fb@florentbordignon.fr" <fb@florentbordignon.fr>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yqdYZ9NWivRHWpohEf9ruz65Goa5KyahIj1DDSLiLVk=; b=eJCxd8CQppD/4GcNkx5Y4D+b/2QqX1Y5MGfMn3JRUYwXpQI3PoSyymJKaaLD6et/zX tJHq4FlnvegQ7ae6IN/npj27mfQfns2T9kxlzAp11jiCUJNv/ajf5ClZ1nWHpuGVeSE7 uvIl6IMlFN/eYZRST+2/a+WYSvA5AKKUtalvo=
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yqdYZ9NWivRHWpohEf9ruz65Goa5KyahIj1DDSLiLVk=; b=lbLbmXSm9jmPS8hD3UE3c/R54HG9eqwZCzya6Olp6cqJl47PJi1V5NTd3nbU4l5onu RIfSN6r6+tXZ843y7ESJbIDoEc2v45p+dLSasjdZs2uB7Zpb2PyWLJVhUZbDCxQ2GOW6 keH+lbDtS4lcjNJ7TDrVgUsteXS5h4fD8nAUKg/T4d011MYM6R+/b+rMOQYCsE5ckqpJ 12c7F1gbUEjv66GAP/OpCco+im7rWjoiaJhGinSm/PlYz226Figks4tf611EOroHEx6d ARMXphu8ZDoZJwlNipWzPMe/ErkNBHgQSZlvDTPBSnhpUqVsrV4Mg86SaZhAeW7Skl6R Eu9w==
X-Gm-Message-State AGi0PuZZp0WaOXCzw+1EWLUXjdYjLOeYA2XqvBWX+kvweotWRALZtfmF JYn8PdwfY5pAZJvHIllDI7CMKw==
X-Google-Smtp-Source APiQypL22v54BKNZ3a+6jfJSrU4pCIx932FBHlhx6dyQ0enN5gE/k0M2GGiBq0xXZn+ab1/3tY5xvQ==
X-Received by 2002:a05:6000:1251:: with SMTP id j17mr24679624wrx.228.1586184654907; Mon, 06 Apr 2020 07:50:54 -0700 (PDT)
Content-Disposition inline
In-Reply-To <2f74-5e8b3d80-85-5823c700@26668721>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a00:1450:4864:20::42d
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200406145053.GA489646@chrisdown.name>
X-Mailman-Original-References <2f74-5e8b3d80-85-5823c700@26668721>
Xref csiph.com gnu.bash.bug:16103

Show key headers only | View raw


fb@florentbordignon.fr writes:
>The following assertion succeeds when it should not :
>set -e
>! true
>echo Hello # prints Hello but should not

Please do read the documentation before reporting bugs :-)

If you read the documentation for `-e`, you'll see that if the command is being 
inverted with `!`, `set -e` does not apply.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Exclamation mark does not work with set -e Chris Down <chris@chrisdown.name> - 2020-04-06 15:50 +0100

csiph-web