Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: If someone wants to try...



Tanaka Akira wrote:

> In article <200001171250.NAA21712@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
>   Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> 
> > If someone tries it and finds any problems, please tell me...
> 
> `make check' succeed but some extra messages are printed.
> 
> % make check
> cd Test ; gmake check
> gmake[1]: Entering directory `/space/akr/zsh/zsh-main-trunc/Test'
> for f in ./*.ztst; do \
>   ../Src/zsh -f ./ztst.zsh $f; \
> done
> ./01grammar.ztst: all tests successful.
> ./02alias.ztst: all tests successful.
> ./03quoting.ztst: all tests successful.
> ZTST_test:72: redirection with no command
> ZTST_test:72: redirection with no command
> ZTST_test:72: redirection with no command
> ZTST_test:72: redirection with no command
> ./04redirect.ztst: all tests successful.
> ...
> 
> These messages `ZTST_test:72: redirection with no command' are
> expected error messages but should not be printed on a terminal and
> dev-15 doesn't print them.

Oops. Unnecessarily complex test in getoutput().

Bye
 Sven

diff -ru ../z.old/Src/exec.c Src/exec.c
--- ../z.old/Src/exec.c	Tue Jan 18 13:07:18 2000
+++ Src/exec.c	Wed Jan 19 09:46:35 2000
@@ -2517,8 +2517,7 @@
 	wc_code(pc[2]) == WC_PIPE && WC_PIPE_TYPE(pc[2]) == WC_PIPE_END &&
 	wc_code(pc[3]) == WC_REDIR && WC_REDIR_TYPE(pc[3]) == READ && 
 	!pc[4] &&
-	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6]) &&
-	wc_code(pc[7]) == WC_END) {
+	wc_code(pc[6]) == WC_SIMPLE && !WC_SIMPLE_ARGC(pc[6])) {
 	/* $(< word) */
 	int stream;
 	char *s = dupstring(ecrawstr(prog, pc + 5));

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author