zsh-workers
 help / color / mirror / code / Atom feed
* Runaway Shell (bug>)
@ 1996-06-20 14:41 gene
  1996-06-21  9:00 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: gene @ 1996-06-20 14:41 UTC (permalink / raw)
  To: zsh-workers

Hi:

   I have the following in beta 21 on hpux 2/700 9.01. If I (mis)type the 
following silly line, I get an untinterruptable runway shell.

ps -eaf | gre[ foo


Thanks


Gene
gene@bear.com

--
*******************************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity contained in this communication.
*******************************************************************************



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

* Re: Runaway Shell (bug>)
  1996-06-20 14:41 Runaway Shell (bug>) gene
@ 1996-06-21  9:00 ` Peter Stephenson
  1996-06-21 12:17   ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 1996-06-21  9:00 UTC (permalink / raw)
  To: Zsh hackers list

gene@bear.com wrote:
> Hi:
> 
>    I have the following in beta 21 on hpux 2/700 9.01. If I (mis)type the 
> following silly line, I get an untinterruptable runway shell.
> 
> ps -eaf | gre[ foo

Nasty.  With NO_BAD_PATTERN, exec.c around line 1177 is repeatedly
globbing the same line because it is always returned containing
tokens.  Any problem with the having NOBADPATTERN untokenize at that
point?  As globbing is the last operation, I can't see any.

The non-interruptibility is a different bug, but that's now traditional.

*** Src/glob.c.bad	Tue Jun 18 20:09:22 1996
--- Src/glob.c	Fri Jun 21 10:54:22 1996
***************
*** 516,521 ****
--- 516,522 ----
      q = parsepat(str);
      if (!q || errflag) {	/* if parsing failed */
  	if (isset(NOBADPATTERN)) {
+ 	    untokenize(ostr);
  	    insertlinknode(list, node, ostr);
  	    return;
  	}

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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

* Re: Runaway Shell (bug>)
  1996-06-21  9:00 ` Peter Stephenson
@ 1996-06-21 12:17   ` Zoltan Hidvegi
  0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1996-06-21 12:17 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: zsh-workers

> Nasty.  With NO_BAD_PATTERN, exec.c around line 1177 is repeatedly
> globbing the same line because it is always returned containing
> tokens.  Any problem with the having NOBADPATTERN untokenize at that
> point?  As globbing is the last operation, I can't see any.

You are right.  glob should not leave any tokens there.  That was not true
before beta19 and I missed that case.

Zoltan



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

end of thread, other threads:[~1996-06-21 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-20 14:41 Runaway Shell (bug>) gene
1996-06-21  9:00 ` Peter Stephenson
1996-06-21 12:17   ` Zoltan Hidvegi

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).