zsh-workers
 help / color / mirror / code / Atom feed
* Curiosity: zstyle -a vs. zstyle -h
@ 2000-05-17  8:37 Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-05-17  8:37 UTC (permalink / raw)
  To: zsh-workers

I just did a little experiment.  It appears that `zstyle -h pat style name'
is exactly equivalent to `typeset -A name; zstyle -a pat style name'.

This seems just a tad inconsistent; if `zstyle -h' is going to force the
name to be an associative array, shouldn't `zstyle -a' force the name to
be an ordinary array?  (And shouldn't it be -A rather than -h?  I thought
we only used -h when -A was already taken, as with `stat' (and there it's
-H).)

An equally good (perhaps even better) alternative would be to drop the -h
option entirely and require the array to be declared if one wants it to be
an assoc.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Curiosity: zstyle -a vs. zstyle -h
@ 2000-05-17  9:52 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-05-17  9:52 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> ...
> 
> An equally good (perhaps even better) alternative would be to drop the -h
> option entirely and require the array to be declared if one wants it to be
> an assoc.

I'd be in favour of this, too (and was already tempted to write it,
especially since, as far as I can see, we don't use -h yet).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-17  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-17  8:37 Curiosity: zstyle -a vs. zstyle -h Bart Schaefer
2000-05-17  9:52 Sven Wischnowsky

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