zsh-workers
 help / color / mirror / code / Atom feed
* Re: nslookup (function) problem
@ 2000-05-04 14:49 Sven Wischnowsky
  2000-05-05  8:23 ` Andrej Borsenkow
  2000-05-05  8:27 ` zpty read hangs (RE: nslookup (function) problem) Andrej Borsenkow
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-05-04 14:49 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> With the latest Zsh (and no special settings apart PAGER=less):
> 
> ...
>
> that is , it runs help output through pager (`less' in my case).
> 
> Unfortunately, function nslookup hangs completely in this case:
> 
> bor@itsrm2% autoload -U nslookup
> bor@itsrm2% nslookup
> Default Server:  mowd017a.mow.siemens.ru
> Address:  139.24.18.1
> 
> > ?
> nothing comes here; it habgs; it is no more possible to kill it with ^C,
> ^\ or ^Z.

More information would have been helpful here (my nslookup does not do 
such things):

- Does it use other environment variables? If so, which. In which
  order? I.e. which one overrides all others?
- If $PAGER is not set, does it use a default pager or does it just
  dump the help to the output? I.e. is it enough to locally unset
  PAGER in nslookup() or should we locally export PAGER=cat?

Could you please try?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

* RE: nslookup (function) problem
  2000-05-04 14:49 nslookup (function) problem Sven Wischnowsky
@ 2000-05-05  8:23 ` Andrej Borsenkow
  2000-05-05  8:27 ` zpty read hangs (RE: nslookup (function) problem) Andrej Borsenkow
  1 sibling, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-05-05  8:23 UTC (permalink / raw)
  To: Sven Wischnowsky, zsh-workers

>
> - Does it use other environment variables? If so, which. In which
>   order? I.e. which one overrides all others?
> - If $PAGER is not set, does it use a default pager or does it just
>   dump the help to the output? I.e. is it enough to locally unset
>   PAGER in nslookup() or should we locally export PAGER=cat?
>

Unsetting PAGER runs it through `more' (obviously, default - but this
PAGER story is not documented anywhere). Setting PAGER=cat does the
trick ... almost. The problem is, now the ability to page output is
lost.

Hmm ... may be extend nslookup function in the same way (probably, using
style to turn it on/off)? If output has more lines than fit on screen,
run it through PAGER?

-andrej


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

* zpty read hangs (RE: nslookup (function) problem)
  2000-05-04 14:49 nslookup (function) problem Sven Wischnowsky
  2000-05-05  8:23 ` Andrej Borsenkow
@ 2000-05-05  8:27 ` Andrej Borsenkow
  1 sibling, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-05-05  8:27 UTC (permalink / raw)
  To: Sven Wischnowsky, zsh-workers

> >
> > Unfortunately, function nslookup hangs completely in this case:
> >
> > bor@itsrm2% autoload -U nslookup
> > bor@itsrm2% nslookup
> > Default Server:  mowd017a.mow.siemens.ru
> > Address:  139.24.18.1
> >
> > > ?
> > nothing comes here; it habgs; it is no more possible to
> kill it with ^C,
> > ^\ or ^Z.
>


I want to stress it - in this case zsh *hangs* - there is no way to
break out of 'zpty -r'. That is unacceptable, even more so for
interactive shell.

-andrej


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

end of thread, other threads:[~2000-05-05  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-04 14:49 nslookup (function) problem Sven Wischnowsky
2000-05-05  8:23 ` Andrej Borsenkow
2000-05-05  8:27 ` zpty read hangs (RE: nslookup (function) problem) Andrej Borsenkow

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