help-bash
[Top][All Lists]
Advanced

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

Re: Fwd: No set builtin for exit on failure of an argument passed to a s


From: Sabin p
Subject: Re: Fwd: No set builtin for exit on failure of an argument passed to a simple command
Date: Thu, 20 Nov 2025 15:32:06 -0500

I'm not proposing the behaviour of set -e should change, backwards
compatibility above all is critical to bash. I mostly just wanted to ask in
case the behaviour I seek was already implemented through some other
mechanism I wasn't aware of. If I was proposing anything it would be in the
form of a new set option to capture errors of arguments. Perhaps there's
some fundamental design constraint I'm not considering but it seems
counter-intuitive to me to explicitly want the capturing of errors in
command arguments to be unsupported.

Maybe it's too effortful to implement, or the general style of using -e
just doesn't align with the way developers write scripts so they see no
motivation for implementing such a feature. That's entirely fair too. In
any regard, thank you for your help.


reply via email to

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