bug-bash
[Top][All Lists]
Advanced

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

Re: Bash-5.2-alpha available


From: Chet Ramey
Subject: Re: Bash-5.2-alpha available
Date: Sat, 22 Jan 2022 12:55:42 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1

On 1/22/22 4:09 AM, Oğuz wrote:
On Fri, Jan 21, 2022 at 6:28 PM Chet Ramey <chet.ramey@case.edu> wrote:
a. Fixed a bug that assigned a value to the variable name supplied as an
    argument to `wait -p' when there were no jobs.

This doesn't seem like it's fixed

$ bash -c 'echo $BASH_VERSION; unset foo; for i in 1 2 3; do wait -p
foo; declare -p foo; done'
5.2.0(13)-alpha
declare -- foo="0"
declare -- foo="1638738736"
declare -- foo="1638738960"

`wait -p' doesn't really do anything useful when the `-n' option isn't
supplied. But we can make sure to leave it unset if there aren't any jobs.


e. Here-document parsing now handles $'...' and $"..." quoting when reading the
    here-document body.

And I don't think this is very useful with aposthropes remaining

$ cat <<X
$'\n'
X
'
'

$'\n' is identical to
'
'

Here-document bodies are parsed as if they are within double quotes, and
single quotes are not special within double quotes.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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