Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: RE: nslookup (function) problem



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