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

Re: Trying to complete process substitution args crashes zsh-3.0-pre2



> When I type the following command:
> 
> ~% diff <(zcat file1.gz) <(zcat file2.gz) | less
> 
> I can complete the word "diff" with TAB, but not the word "zcat" in
> the <(...) construction.  Typing TAB after <(zc lists all commands
> beginning with zc, but repeating the TAB keystroke after <(zca
> crashes the shell.  The same goes for >(...) constructions.

Try this patch.

Zoltan


*** Src/zle_tricky.c	1996/07/05 21:58:31	2.55
--- Src/zle_tricky.c	1996/07/06 18:12:25
***************
*** 929,936 ****
  	addx(&tmp);
      linptr = (char *)line;
      pushheap();
-   start:
      HEAPALLOC {
  	inwhat = IN_NOTHING;
  	/* Now set up the lexer and start it. */
  	parbegin = parend = -1;
--- 929,936 ----
  	addx(&tmp);
      linptr = (char *)line;
      pushheap();
      HEAPALLOC {
+       start:
  	inwhat = IN_NOTHING;
  	/* Now set up the lexer and start it. */
  	parbegin = parend = -1;




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