FYI, if I attempt to read into the built-in array variable, GROUPS,
this doesn't work:
$ bash -c 'while read GROUPS; do echo $GROUPS; done < /etc/passwd'|wc -l
0
Comparing with dash, I see what the author expected, i.e.,
that the while loop iterates once per line in /etc/passwd:
$ dash -c
retitle 9129 printf: RFE: reject field width larger than INT_MAX
tags 9129 notabug
thanks
Eric Blake wrote:
> [adding coreutils]
>
> On 07/20/2011 07:34 AM, Ralph Corderoy wrote:
>> BTW, the code for the built-in printf has a bug. For negative
>> field-widths it negates a negative integer without
Eric Blake <[EMAIL PROTECTED]> wrote:
> According to Chet Ramey on 10/21/2006 11:52 AM:
>> Jochen Roderburg wrote:
>>>
>>> I finally tracked this down to a changed behaviour of the builtin echo
>>> command.
>>>
>>> Namely, the formecho -e '\nnn' with a 3-digit octal number does not
>>> work
Hi,
Is the following behavior intended?
I was surprised by the behavior of bash/zsh/ash/dash/pdksh,
yet Solaris 5.9's /bin/sh does what I expected:
# Solaris 5.9's /bin/sh
$ echo a; (set -e; false; echo foo) && echo b
a
# Yet bash/zsh/ash do this:
$ echo a; (set -e; false; echo foo) &