zsh-workers
 help / color / mirror / code / Atom feed
* Re: core dumps with (( #\... ))
@ 1999-09-23 13:04 Sven Wischnowsky
  1999-09-23 13:48 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 1999-09-23 13:04 UTC (permalink / raw)
  To: zsh-workers


Peter Stephenson wrote:

> Yes, except that the supposed syntax, which is #\ followed by some key
> string such as \M-/, doesn't work because the \\ is turned into a single \
> by double quoting rules, so actually you need #\\\M-/, which is rather
> unfortunate.  Maybe the syntax should have been ## for a key string, then
> both the errors which led to uncovering the bug would be less likely.

Oh, stupid me... good idea.

> Should I change it but keep \ for backward compatibility?

That would be kind.

Bye
 Sven


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


^ permalink raw reply	[flat|nested] 4+ messages in thread
* core dumps with (( #\... ))
@ 1999-09-23 11:18 Adam Spiers
  1999-09-23 12:10 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Spiers @ 1999-09-23 11:18 UTC (permalink / raw)
  To: zsh workers mailing list

Found this through mistyping #\a syntax :-)

% print $(( \#a ))
zsh: bad math expression: operand expected at `\#a '
zsh: 16508 segmentation fault (core dumped)  /bin/zsh

Here's another, maybe the same bug?

% (( 1 == #\M-/ )) && print yep
zsh: bad math expression: operand expected at `/ '
zsh: 17042 segmentation fault (core dumped)  /bin/zsh


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

end of thread, other threads:[~1999-09-23 14:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-23 13:04 core dumps with (( #\... )) Sven Wischnowsky
1999-09-23 13:48 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1999-09-23 11:18 Adam Spiers
1999-09-23 12:10 ` 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).