From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23998 invoked from network); 12 Jun 2002 14:52:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Jun 2002 14:52:14 -0000 Received: (qmail 22828 invoked by alias); 12 Jun 2002 14:52:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17317 Received: (qmail 22816 invoked from network); 12 Jun 2002 14:52:02 -0000 X-VirusChecked: Checked cc: zsh-workers@sunsite.dk In-reply-to: <6924.1023889353@csr.com> From: Oliver Kiddle References: <6924.1023889353@csr.com> To: Peter Stephenson Subject: Re: typeset verbosity MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18097.1023892995.1@logica.com> Date: Wed, 12 Jun 2002 15:51:31 +0100 Sender: kiddleo@logica.com Message-Id: On 12 Jun, Peter wrote: > (1) Make the display behaviour optional. If so, decide when to unset > the option by default, e.g any sh-style emulation. > (2) Make the display behaviour not work inside functions. (Making it > not work on local parameters isn't good enough because of the -g > flag.) > (3) Make it only work with typeset, or at least not work with local. > (4) Some combination of (1) with the others. > > Only (1) can ensure POSIX compatibility. We could add a flag to display > listed parameters instead. For POSIX, we really ought to be accepting the -p flag which displays the listed parameters but in a different format (in the form of a typeset command). This typically being -L in zsh has probably been significant in this not being done before. It might actually be a good idea to add -p as an alternate form of -L across many builtins. One possibility which is an extension of (3) would be to make it only work on typeset but not for all the other typeset variants and then follow bash in changing the documentation so declare is the recommended version of the command (it's a better name anyway in my opinion). The KSH_TYPESET option could be extended to make typeset also work that way for ksh compatibility. Additionally, we could perhaps add a flag to typeset and variants which could explicity control whether set parameters are listed. A related annoyance - autoload being a sort of typeset variant - is that autoload ~/.zfunc/*(N) will not end silently if there are no files in ~/.zfunc. Changing this could perhaps be a part of whatever solution is chosen. Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.