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: Lawrence Velázquez
Subject: Re: Bad substitution breaks conditional statement
Date: Tue, 13 Oct 2020 18:15:33 -0400

> On Oct 13, 2020, at 4:42 PM, Martin Schulte <gnu@schrader-schulte.de> wrote:
> 
> 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.

Why should invalid parameter transformation operators be treated
differently from other invalid parameter expansions?

vq


reply via email to

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