On 1/22/22 4:09 AM, Oğuz wrote:
On Fri, Jan 21, 2022 at 6:28 PM Chet Ramey <chet.ra...@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 c...@case.edu http://tiswww.cwru.edu/~chet/