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

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to