mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
use `eval' in nslookup for pager, in case someone has PAGER='less -foo' or some such (11186)
This commit is contained in:
parent
93fb9aaec5
commit
126d3131e1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-05-05 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 11186: Functions/Misc/nslookup: use `eval' in nslookup for
|
||||
pager, in case someone has PAGER='less -foo' or some such
|
||||
|
||||
2000-05-05 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 11184: Completion/User/.distfiles, Completion/User/_bzip2,
|
||||
|
|
|
@ -34,7 +34,7 @@ while line=''; vared -he "$pmpt[@]" line; do
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue