Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: RE: nslookup (function) problem
- X-seq: zsh-workers 11186
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: RE: nslookup (function) problem
- Date: Fri, 5 May 2000 13:08:43 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Fri, 5 May 2000 14:01:19 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> > + if [[ -n "$pager" && ${#${(f)line}} -gt LINES ]]; then
> > + print -nr "$line" | "$pager"
>
> :-)))
>
> bor@itsrm2% export PAGER='less -c'
> bor@itsrm2% nslookup
> Default Server: mowd017a.mow.siemens.ru
> Address: 139.24.18.1
>
> > ?
> nslookup:37: command not found: less -c
> >
Ok, ok... ;-)
Bye
Sven
Index: Functions/Misc/nslookup
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/nslookup,v
retrieving revision 1.2
diff -u -r1.2 nslookup
--- Functions/Misc/nslookup 2000/05/05 08:52:41 1.2
+++ Functions/Misc/nslookup 2000/05/05 11:07:54
@@ -34,7 +34,7 @@
zpty -r nslookup line '*
> '
if [[ -n "$pager" && ${#${(f)line}} -gt LINES ]]; then
- print -nr "$line" | "$pager"
+ print -nr "$line" | eval "$pager"
else
print -nr "$line"
fi
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author