zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: typeset -U broken in 3.1.2?
Date: Tue, 09 Dec 1997 09:59:53 +0100	[thread overview]
Message-ID: <199712090859.JAA00493@hydra.ifh.de> (raw)
In-Reply-To: "Bernd Eggink"'s message of "Mon, 08 Dec 1997 15:55:14 MET." <348C0A52.9D868E10@rrz.uni-hamburg.de>

Bernd Eggink wrote:
> Any comments (or, preferably, patches)?

The typeset code needs rewriting completely.  The interaction between
local variables and other typeset options is generally very poor.  One
other difficulty with the code is if you use typeset to change the behaviour
of a variable:  maintaining consistency between the two values can be
a big job (changing from an integer to a string is one example which is
currently handled, but there are all sorts of others).

Adding typeset -A isn't a bad idea either; it might provide an obvious
way of tying arrays and colon-separated variables together, i.e.
typeset -A arrayname -? colonname[=colon:value:with:colons] \
    [ array value in words ]
(I don't know what the ? should be; obviously you wouldn't set both the
colon version and array version at once) which would make the typeset -A
part on its own a natural counterpart to set -A, but would make the array
local if necessary (except maybe if you give -? ! That's another
problem of consistency to sort out: sometimes you don't want a
typeset made local, and some times it should depend on the name by
which it's called, e.g. export and typeset -x should be different).

But that justs makes the code even more complicated... I've always been
put off from this because you really need to start from scratch, and in
that case there's just so much to get right which in the current code has
partially agglomerated [I just checked that in WWWebster] over the centuries.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +39 50 911239
WWW:  http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy


           reply	other threads:[~1997-12-09  9:16 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <348C0A52.9D868E10@rrz.uni-hamburg.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199712090859.JAA00493@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).