1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

use `eval' in nslookup for pager, in case someone has PAGER='less -foo' or some such (11186)

This commit is contained in:
Sven Wischnowsky 2000-05-05 11:10:47 +00:00
parent 93fb9aaec5
commit 126d3131e1
2 changed files with 6 additions and 1 deletions

View file

@ -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