Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: Completion undefine some control characters.
- X-seq: zsh-workers 11326
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: Completion undefine some control characters.
- Date: Thu, 11 May 2000 14:45:57 +0000
- In-reply-to: <200005111252.OAA27420@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200005111252.OAA27420@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On May 11, 2:52pm, Sven Wischnowsky wrote:
} Subject: Re: Completion undefine some control characters.
}
} That's caused by the `exec </dev/null' Bart added. No idea what's
} happening here yet... (it's too darn hot here for thinking).
During `exec', init_io() reinitializes SHTTY from descriptor 1, stomping
on the tty settings in the process.
The following is the most obvious fix, but maybe there's a better way?
It bothers me a little that zleactive isn't isolated to the zle module,
but there are other bits of the main zsh code that know about it.
Index: Src/exec.c
===================================================================
@@ -2097,7 +2097,7 @@
/* If this is 'exec < file', read from stdin, *
* not terminal, unless `file' is a terminal. */
if (nullexec == 1 && fn->fd1 == 0 &&
- isset(SHINSTDIN) && interact)
+ isset(SHINSTDIN) && interact && !zleactive)
init_io();
break;
case CLOSE:
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author