zsh-workers
 help / color / mirror / code / Atom feed
* \" in $(( )) vs $[ ]
@ 2011-09-15 10:17 Mikael Magnusson
  2011-09-15 12:12 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Magnusson @ 2011-09-15 10:17 UTC (permalink / raw)
  To: zsh workers

% echo $(( ##\' ))
39
% echo $[ ##\" ]
34
% echo $(( ##\" ))
<cmdsubst:~>%

and tangentially, why does the above also work with only one #?
% a=b
% echo $[ #a ]
98
% echo $[ ##a ]
97
% echo $[ #\' ]
39
% echo $[ #\" ]
34

-- 
Mikael Magnusson


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

end of thread, other threads:[~2011-09-15 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15 10:17 \" in $(( )) vs $[ ] Mikael Magnusson
2011-09-15 12:12 ` Peter Stephenson
2011-09-15 12:56   ` Peter Stephenson
2011-09-15 13:59     ` 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).