Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

typeset verbosity

Instead of thinking about hard problems for once, I'd like to get rid of
this annoyance from `typeset' or friends on an existing parameter:

% fn() { local foo; local foo; }
% fn


(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
(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.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author