bug-bash
[Top][All Lists]
Advanced

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

Re: Bad substitution breaks conditional statement


From: Martin Schulte
Subject: Re: Bad substitution breaks conditional statement
Date: Tue, 13 Oct 2020 22:42:04 +0200

Hi Chet, hi all!

> In general, variable expansion errors cause posix-mode shells to exit and
> bash default mode shells to abort execution of the current command and
> return to the top level, whether that is the command line or the next
> command in the script. This aborts lists and other compound commands.
> Bash has always behaved this way.
> 
> However, invalid parameter transformation operators are not considered
> fatal errors, even in posix mode. Maybe they should be.

Yes, please :-)

Or no error at all.

Best regards

Martin



reply via email to

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