From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4820 invoked from network); 22 Sep 2003 18:04:12 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Sep 2003 18:04:12 -0000 Received: (qmail 27534 invoked by alias); 22 Sep 2003 18:04:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19122 Received: (qmail 27512 invoked from network); 22 Sep 2003 18:04:01 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Sep 2003 18:04:01 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.232.255] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Sep 2003 18:4:1 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8MI3xq20398 for zsh-workers@sunsite.dk; Mon, 22 Sep 2003 11:03:59 -0700 From: Bart Schaefer Message-Id: <1030922180359.ZM20397@candle.brasslantern.com> Date: Mon, 22 Sep 2003 18:03:59 +0000 In-Reply-To: <20030922174410.GB12493@DervishD> Comments: In reply to DervishD "Re: Problem with an exported array" (Sep 22, 7:44pm) References: <1030922142208.ZM19975@candle.brasslantern.com> <7352.1064245936@csr.com> <20030922174410.GB12493@DervishD> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh Subject: Re: Problem with an exported array MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 22, 7:44pm, DervishD wrote: } } > As I said before, there's nowhere in struct param to store the } > character; else it's not that hard. Maybe you can see a trick. } } Surely I'm clueless, but other options in other builtins have } characters or numbers following an option: where are they stored? By "stored" PWS here means "preserved for the entire life of the variable, so that every time $pager is assigned we remember what to use to transform it to $PAGER." Other commands only have to "store" the option for the lifetime of the command execution, not potentially forever. There's a generic mechanism for that, shared by all builtin commands. If the only choices are colon or space, a one-bit boolean flag in an existing flag word is sufficient; if it's a character (or a function) that has to be stored in some new location that doesn't yet exist.