Re: parse error running builtins from array

2009-07-28 Thread Chris F.A. Johnson
On Tue, 28 Jul 2009, mk27 wrote: > > cc=('who' 'bash -c "time ls -l"' 'date') > > for e in 0 1 2; do ${cc[$e]}; done > > produces an error: > ls: -c: line 0: unexpected EOF while looking for matching `"' > ls: -c: line 1: syntax error: unexpected end of file > > well, there isn't a missing " A

Re: Ordering in associative array expansion

2009-07-28 Thread Chet Ramey
Chris F.A. Johnson wrote: >What is the algorithm for order of expansion of associative arrays? There is none. The hash table in which they're stored is traversed from beginning to end. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRUc...@case.e

Re: HTML Form Script?

2009-07-28 Thread Bob Proulx
FlyingShoes12 wrote: > I am writing a script to deal with form input. Most of it is done, but I > can't seem to be able to tell the script to open an html page at the end - > what the user will see when he clicks "send". What command should i use? This really isn't a bash bug nor a bash question.

Ordering in associative array expansion

2009-07-28 Thread Chris F.A. Johnson
What is the algorithm for order of expansion of associative arrays? Single-letter subscripts are expanded alphabetically, but longer subscripts are not. -- Chris F.A. Johnson, webmaster

parse error running builtins from array

2009-07-28 Thread mk27
cc=('who' 'bash -c "time ls -l"' 'date') for e in 0 1 2; do ${cc[$e]}; done produces an error: ls: -c: line 0: unexpected EOF while looking for matching `"' ls: -c: line 1: syntax error: unexpected end of file well, there isn't a missing " AFAICT, and playing around with them has not helped. D

Re: Patch to make readline parse CSI keycodes properly

2009-07-28 Thread Chet Ramey
> me scribbled: > > the small patch below > > defines a function called 'skip-csi-seq' that skips over the CSI > > parameter, intermediate, and final bytes. This is assigned to "\e[". > > Since bindings for longer sequences take precedence over shorter ones, > > CSI sequences that do have functions

Re: Patch to make readline parse CSI keycodes properly

2009-07-28 Thread Andy Koppe
me scribbled: > the small patch below > defines a function called 'skip-csi-seq' that skips over the CSI > parameter, intermediate, and final bytes. This is assigned to "\e[". > Since bindings for longer sequences take precedence over shorter ones, > CSI sequences that do have functions bound to th

HTML Form Script?

2009-07-28 Thread FlyingShoes12
I am writing a script to deal with form input. Most of it is done, but I can't seem to be able to tell the script to open an html page at the end - what the user will see when he clicks "send". What command should i use? -- View this message in context: http://www.nabble.com/HTML-Form-Script--

Bad number of digits in brace sequence expansion when used increment

2009-07-28 Thread Roman Rakus
When we use 0 prefix and increment bash will prefix all integers with bad number of zeroes. Man page says "When either x or y begins with a zero, the shell attempts to force all generated terms to contain the same number of digits, zero-padding where necessary." The number of digits is same, bu