zsh-users
 help / color / mirror / code / Atom feed
* trivial question
@ 2022-12-05  2:05 Ray Andrews
  2022-12-05  2:52 ` Lawrence Velázquez
  0 siblings, 1 reply; 14+ messages in thread
From: Ray Andrews @ 2022-12-05  2:05 UTC (permalink / raw)
  To: Zsh Users

Running this:

var=( "now is" "the time" "for all good" "men to" )

echo var[2] ain\'t nothing
echo var2] ain\'t nothing
echo "var[2]"
echo $var[2]

... I get this:

4 /aWorking/Zsh/Source/Wk 0 $ . test1
ain't nothing
var2] ain't nothing
var[2]
the time


... It hardly matters but I'm curious that 'var[2]' without the dollar 
sign evaluates to nothing at all.  I have zero need for it to do 
otherwise still I'm mildly expecting it to just end up as a plain string 
the same way 'var2]' does.  Seems strange that it evaporates entirely.




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

end of thread, other threads:[~2022-12-07  0:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05  2:05 trivial question Ray Andrews
2022-12-05  2:52 ` Lawrence Velázquez
2022-12-05  5:20   ` Ray Andrews
2022-12-05  6:40     ` Lawrence Velázquez
2022-12-05 14:11       ` Ray Andrews
2022-12-06  2:12         ` Lawrence Velázquez
2022-12-06  2:29           ` Ray Andrews
2022-12-06  4:29             ` Bart Schaefer
2022-12-06  6:08               ` Lawrence Velázquez
2022-12-06 10:18               ` Roman Perepelitsa
2022-12-06 11:21                 ` Peter Stephenson
2022-12-06 15:28               ` Ray Andrews
2022-12-06 18:53                 ` Bart Schaefer
2022-12-07  0:02                 ` Lawrence Velázquez

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