Re: eval

2011-05-04 Thread Rafael Fernandez
I appreciate the links and information. I prematurely assumed it was a bug as I am used to the behavior of sh on NetBSD which does not require enclosing positional parameters. I believe it is adequately expressed in the manual page, I just need to improve my reading comprehension. Thanks. On Wed,

Matching regular expression with Ctrl-A in the middle

2011-05-04 Thread Shawn Bohrer
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'

Re: eval

2011-05-04 Thread Rafael Fernandez
Thanks, I wasn't aware that positional parameters greater than nine have to be enclosed in brackets. On Tue, May 3, 2011 at 10:17 PM, DJ Mills wrote: > > > On Tue, May 3, 2011 at 10:41 PM, Jonathan Nieder wrote: > >> Hi Rafael, >> >> Rafael Fernandez wrote: >> >> > set -- a b c d e f g h

Bash associative arrays are slow, don't scale

2011-05-04 Thread David Kuehling
Hi, I'm using a bash script (bash 4.1) to parse debian package indices (kind of a mirroring script). This stores all package fields for every package into one big hash table. That's about 300.000 hash array elements for Debian sid's "Sources" index file. Unfortunately performance doesn't scale

eval

2011-05-04 Thread Rafael Fernandez
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE

Bash-4.2 Official Patch 10

2011-05-04 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.2 Patch-ID: bash42-010 Bug-Reported-by:Mike Frysinger Bug-Reference-ID: <201104122356.20160.vap...@gentoo.org> Bug-Reference-URL: http://lists.gnu.org/archive

Bash-4.2 Official Patch 9

2011-05-04 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.2 Patch-ID: bash42-009 Bug-Reported-by: Bug-Reference-ID: <4daac0db.7060...@piumalab.org> Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-04

Re: eval

2011-05-04 Thread Greg Wooledge
On Tue, May 03, 2011 at 09:41:28PM -0500, Jonathan Nieder wrote: > Rafael Fernandez wrote: > > set -- a b c d e f g h i j k l m n o p q r s t u v w x y z > > i=1 > > eval echo '$'$i # outputs an expected 'a' I didn't see the original question yet, but it looks like

Re: eval

2011-05-04 Thread Andreas Schwab
Jonathan Nieder writes: > For the future, the sh specification at > http://www.unix.org/2008edition/ (free registration required) http://pubs.opengroup.org/onlinepubs/9699919799/ (no registration required) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53