Re: [PATCH] Define $as_echo and $as_echo_n for backward compatibility.

2020-03-13 Thread Chet Ramey
On 3/13/20 3:32 PM, Eric Blake wrote: > I'm wondering if Chet has an update on the matter (adding bug-bash). > Repeating some context: > https://www.mail-archive.com/austin-group-l@opengroup.org/msg04237.html > was a mail to the POSIX folks last June complaining about how bash 5.0's > change to

Re: [PATCH] Define $as_echo and $as_echo_n for backward compatibility.

2020-03-13 Thread Eric Blake
On 3/13/20 2:22 PM, Zack Weinberg wrote: On Fri, Mar 13, 2020 at 3:13 PM Eric Blake wrote: Unpatched bash 5.0 has a bug where calling $as_echo that contains \ can result in unintended globbing, where the behavior of the expansion is dependent on the contents of the current directory. Nasty!

Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-13 Thread Robert Elz
Date:Fri, 13 Mar 2020 06:59:56 -0500 From:John McKown Message-ID: | I do things like: | | test && { true_command1;true_command2; : ; } || { | false_command1; false_command2; false_command3; } That's OK, and at times I have been tempted that way, but it

Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-13 Thread Chet Ramey
On 3/13/20 9:27 AM, Eli Schwartz wrote: > (I am still mindblown that "I want a modern syntax for " can > possibly lead to "imitate C, which is 50 years old and thus astoundingly > even less modern than the Bourne shell by an entire decade".) I think the emphasis is on more familiar and more

Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-13 Thread Eli Schwartz
On 3/13/20 7:59 AM, John McKown wrote: > I do things like: > > test && { true_command1;true_command2; : ; } || { > false_command1; false_command2; false_command3; } > > Notice the command : (colon) as the last command in the true. The reason > that I put it there is to guarantee that the $?

Re: Are there any plans for more readable, modern syntaxes for If statements?

2020-03-13 Thread John McKown
On Thu, Mar 12, 2020 at 4:01 PM Eli Schwartz wrote: > On 3/12/20 3:00 PM, Vaidas BoQsc wrote: > > Are there any plans to have alternative, a more modern C or D like > syntaxes > > for IF statements, While loop and the like in Bash? > > > > Would it be better to just make a new shell and command