* cascaded ;& problem.
@ 2000-06-17 7:56 Tanaka Akira
2000-06-17 9:27 ` PATCH (?): " Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Tanaka Akira @ 2000-06-17 7:56 UTC (permalink / raw)
To: zsh-workers
I found that cascaded ;& doesn't work well.
Z(2):akr@flux% Src/zsh -f
flux% case "a" in
case> a) echo a ;&
case> b) echo b ;&
case> c) echo c ;;
case> esac
a
b
flux%
It should also print `c'.
--
Tanaka Akira
^ permalink raw reply [flat|nested] 2+ messages in thread
* PATCH (?): Re: cascaded ;& problem.
2000-06-17 7:56 cascaded ;& problem Tanaka Akira
@ 2000-06-17 9:27 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-06-17 9:27 UTC (permalink / raw)
To: Tanaka Akira, zsh-workers
On Jun 17, 4:56pm, Tanaka Akira wrote:
} Subject: cascaded ;& problem.
}
} I found that cascaded ;& doesn't work well.
Can it really be this easy?
Index: Src/loop.c
===================================================================
@@ -567,7 +567,7 @@
state->pc = next;
code = *state->pc;
state->pc += 3;
- next = state->pc + WC_CASE_SKIP(code) - 1;
+ next = state->pc + WC_CASE_SKIP(code) - 2;
execlist(state, 1, ((WC_CASE_TYPE(code) == WC_CASE_OR) &&
do_exec));
}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-17 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-17 7:56 cascaded ;& problem Tanaka Akira
2000-06-17 9:27 ` PATCH (?): " Bart Schaefer
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).