zsh-workers
 help / color / mirror / code / Atom feed
* "Array" variables that aren't set, and NO_UNSET
@ 1996-07-22 19:35 Bart Schaefer
  1996-07-23 12:17 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 1996-07-22 19:35 UTC (permalink / raw)
  To: zsh-workers

Consider:

zsh% setopt | grep set
nounset             off
zsh% echo ${thisisnotavariable}

zsh% echo ${thisisnotavariable[1]}
zsh: closing brace expected
zsh% 

Why is it a *syntax* error to subscript a variable that's not set, when
it is not a syntax error to refer to the string value of such a variable?

-- 
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] 2+ messages in thread

end of thread, other threads:[~1996-07-23 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-22 19:35 "Array" variables that aren't set, and NO_UNSET Bart Schaefer
1996-07-23 12:17 ` Peter Stephenson

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