using the variable name, GROUPS, in a read list

2012-03-07 Thread Jim Meyering
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

Re: bug#9129: Built-in printf Sits Awkwardly with UDP.

2011-07-22 Thread Jim Meyering
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

Re: Problem with echo -e in bash 3.2

2006-10-22 Thread Jim Meyering
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

using `set -e' in a subshell

2005-03-27 Thread Jim Meyering
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) &