From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes Sender: B.Stephens@isode.com To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: PATCH: zsh-3.1.5-pws-5 + recent: typeset -T MYPATH mypath (finally!) References: <9901281725.AA31711@ibmth.df.unipi.it> MIME-Version: 1.0 From: Bruce Stephens Date: 28 Jan 1999 17:53:11 +0000 In-Reply-To: Peter Stephenson's message of "Thu, 28 Jan 1999 18:25:39 +0100" Message-ID: User-Agent: Gnus/5.070069 (Pterodactyl Gnus v0.69) XEmacs/20.4 (Emerald) X-Mailing-List: 5097 Peter Stephenson writes: > Now I've tidied up bin_typeset() a bit, it's finally possible to make > user-tiable path-like variables without the onset of suicidal > feelings. This has been requested for several years. Maybe there's not > even anyone left who wants it --- word splitting and joining has > improved quite a lot since then. The syntax is > typeset -T TEXINPUTS texinputs > where the scalar has to come first, but there is no restriction on the > names. I think the issue was mostly with typeset -U. Looking at the description of -U, it suggests that it ought to work for colon-separated things like PATH anyway. Hmm... No, it doesn't work for random variables, only for special ones. So, this patch *is* still worthwhile. It ought to allow me to create new colon-separated variables, and have the shell eliminate duplicates. Of course, what we really want is programmable setting and reading of variables, like ksh93 has.