The R Project SVN R

Rev

Rev 46832 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46832 Rev 64506
Line 2... Line 2...
2
## For the curious: "pager $1" doesn't work in batch, because "more" will
2
## For the curious: "pager $1" doesn't work in batch, because "more" will
3
## eat the rest of stdin.  The no-argument version is intended for use at
3
## eat the rest of stdin.  The no-argument version is intended for use at
4
## the end of a pipeline.
4
## the end of a pipeline.
5
##
5
##
6
## PAGER is determined at configure time and recorded in `etc/Renviron'.
6
## PAGER is determined at configure time and recorded in `etc/Renviron'.
-
 
7
## This is documented to be a 'command line' so we do not quote it.
7
if test -n "${1}"; then
8
if test -n "${1}"; then
8
  exec ${PAGER} < ${1}
9
  exec ${PAGER} < ${1}
9
else
10
else
10
  exec ${PAGER}
11
  exec ${PAGER}
11
fi
12
fi