Handle pager commands with arguments This handles PAGER in the same way the last commit handled EDITOR. Signed-off-by: Anders Kaseorg <andersk at mit.edu>
1 files changed, 3 insertions(+), 2 deletions(-) M ldapvi/misc.c
M ldapvi/misc.c => ldapvi/misc.c +3 -2
@@ 215,7 215,8 @@ view(char *pathname) case -1: syserr(); case 0: execlp(pg, pg, pathname, (char *) NULL); execl("/bin/sh", "sh", "-c", "exec $0 \"$@\"", pg, pathname, (char *) NULL); syserr(); } @@ 247,7 248,7 @@ pipeview(int *fd) close(fds[1]); dup2(fds[0], 0); close(fds[0]); execlp(pg, pg, (char *) NULL); execl("/bin/sh", "sh", "-c", "exec $0", pg, (char *) NULL); syserr(); }