* Misc. "typeset" oddities
@ 1996-07-23 19:56 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1996-07-23 19:56 UTC (permalink / raw)
To: zsh-workers
I used "typeset -U" in a function, and it had the effect of "local". This
is pretty confusing. I had to switch to "typeset -xU", which seems really
strange because you can't normally export arrays.
If a variable is set and then you attempt to add attributes to it with
"typeset", sometimes the value of the variable is cleared, and other times
it is not. In particular, array variables MUST be set BEFORE you attempt
to use "typeset -U" on them; and string variables are cleared if you use
"typeset -L" or "typeset -R" on them. There may be other such cases.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-07-23 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-23 19:56 Misc. "typeset" oddities Bart Schaefer
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).