shell script implementation of man
Natanael Copa
natanael.copa at gmail.com
Fri Nov 21 07:29:27 UTC 2008
On Wed, 2008-11-19 at 12:54 -0500, Matthew Hiles wrote:
> [ -z $PAGER ] && PAGER=less
you need quotes:
[ -z "$PAGER" ] && PAGER=less
> #okay, found the page, try decompressing and displaying
> case $pagefile in
> *.bz2)
> bzcat $pagefile | $PAGER ;;
> *.gz)
> zcat $pagefile | $PAGER ;;
> *)
> $PAGER $pagefile ;;
> esac
probably a good idea to quote "$pagefile" and "$PAGER" as well.
PAGER="/path with spasecs/myless"
-nc
More information about the busybox
mailing list