On 1/20/26 4:02 AM, James Le Cuirot wrote:

>> :? is not a proper error reporting mechanism, use
>>
>> [[ -n ${xxx} ]] || die "explanatory message"
>>
>> ${xxx:?} is the same class of error as calling abort() in C and saying
>> "look, it exited nonzero, that's totally safe and clean" meanwhile it is
>> explicitly documented to not run atexit handlers or perform any form of
>> cleanup.
> 
> If you omit it, nothing bad will happen, as long as you don't call it more
> than once, which is unlikely. I've already merged the changes, so I'll add
> this on my next batch of fixes.


Sure, I'm just replying regarding my dislike of the idea that someone
who wants an error message would recommend uncleanly aborting. ;)


-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to