Re: RFC: proposed new builtin for /bin/sh (associative arrays)

2003-11-01 Thread Nicolas Rachinsky
* Oliver Fromme <[EMAIL PROTECTED]> [2003-10-31 21:16 +0100]: > Maybe I'm not understanding your intentions, but isn't that > already possible using "set | sed -n '/^foo_/s/=.*//p'"? > > Or do you want to avoid external programs? In that case it > would be a little bit more difficult to do, but i

Re: RFC: proposed new builtin for /bin/sh (associative arrays)

2003-10-31 Thread Oliver Fromme
Luigi Rizzo <[EMAIL PROTECTED]> wrote: > I am trying to implement, in the most unintrusive way, something > resembliung associative arrays in /bin/sh. I am not interested in > syntactic sugar, so i am happy to use something like _ as a separator > between the array basename and the "index", i.

Re: RFC: proposed new builtin for /bin/sh (associative arrays)

2003-10-31 Thread Peter Pentchev
On Fri, Oct 31, 2003 at 01:43:31AM -0800, Luigi Rizzo wrote: [snip description of a new 'indexes' builtin] > Any comments ? Is this interesting enough to be committed > (with a proper manpage description) ? > I could provide a flag to "indexes" to return the values instead > of the names, but i bel

RFC: proposed new builtin for /bin/sh (associative arrays)

2003-10-31 Thread Luigi Rizzo
[Not sure what is the appropriate forum to discuss this, so please redirect the discussion if you know where. I have Bcc-ed a few /bin/sh committers] I am trying to implement, in the most unintrusive way, something resembliung associative arrays in /bin/sh. I am not interested in syntactic sugar