zsh-workers
 help / color / mirror / code / Atom feed
* more to go from BUGS
@ 1995-11-08  9:37 Geoff Wing
  1995-11-08 11:39 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Geoff Wing @ 1995-11-08  9:37 UTC (permalink / raw)
  To: zsh-list

Heyla, here are some more comments about BUGS:

 ------------------------------------------------------------------------
 Redisplay zle function does not work.
 ------------------------------------------------------------------------
Yes it does. Please provide an instance where it doesn't.

 ------------------------------------------------------------------------
 % test=test
 % echo "${test##`echo '*'`}"
 test
 sh gives empty string here. Is it a bug or a feature?
 ------------------------------------------------------------------------
I didn't get this.  I got something far worse.  Anything after it, eg.
% echo "${test##`echo '*'`}" ; echo foobar
got totally ignored, and the first echo provided no output.

 ------------------------------------------------------------------------
 % zsh -c 'cat a_long_file | less'
 can be interrupted with ^C. The prompt comes back and less is orphaed.
 If you go to the end of the file with less and cat terminates, ^C
 will not terminate less.
 ------------------------------------------------------------------------
Worked absolutely fine on my machine (NetBSD 1.0A & NetBSD 1.1_ALPHA)

-- 
Mason [G.C.W]  mason@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"


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

* Re: more to go from BUGS
  1995-11-08  9:37 more to go from BUGS Geoff Wing
@ 1995-11-08 11:39 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1995-11-08 11:39 UTC (permalink / raw)
  To: zsh-workers

Geoff Wing wrote:
> Heyla, here are some more comments about BUGS:
> 
>  ------------------------------------------------------------------------
>  Redisplay zle function does not work.
>  ------------------------------------------------------------------------
> Yes it does. Please provide an instance where it doesn't.

Are we reading the same BUGS file?  The one from beta11 does not have this
line.

>  ------------------------------------------------------------------------
>  % test=test
>  % echo "${test##`echo '*'`}"
>  test
>  sh gives empty string here. Is it a bug or a feature?
>  ------------------------------------------------------------------------
> I didn't get this.  I got something far worse.  Anything after it, eg.
> % echo "${test##`echo '*'`}" ; echo foobar
> got totally ignored, and the first echo provided no output.

The substitution code is very bugy in the baseline.  This bug is left after my
cleanups.  I do not know what the baseline version does here.

>  ------------------------------------------------------------------------
>  % zsh -c 'cat a_long_file | less'
>  can be interrupted with ^C. The prompt comes back and less is orphaed.
>  If you go to the end of the file with less and cat terminates, ^C
>  will not terminate less.
>  ------------------------------------------------------------------------
> Worked absolutely fine on my machine (NetBSD 1.0A & NetBSD 1.1_ALPHA)

That's also changed in the new BUGS file.  It works for you since less is now
executed without fork.  But try

% zsh -c 'cat a_long_file | less ; :'

and you will see what I mean.  Less behaves well here since it terminates
after it notices that it lost the terminal.  But if you put any program which
ignores INT in place of less, it will continue running after the interrupt.
E.g.:

% zsh -c "sleep 20 | zsh -c 'trap \"\" INT ; while true ; do : ; done' ; :"

Wait a few seconds after starting it and interrupt.  The looping zsh will not
terminate and will eat CPU time in the background.  This is really bad since
you won't notice it unless you do a ps.

Bye,

  Zoltan


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

end of thread, other threads:[~1995-11-08 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-11-08  9:37 more to go from BUGS Geoff Wing
1995-11-08 11:39 ` 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).