[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mandb wrapper scripts



On Tue, Feb 08, 2000 at 03:58:50AM -0900, Ethan Benson wrote:
> 
> bleah /me screwed up this time the real fix is this:
> 
> #!/bin/sh -e
> pgm=`basename $0`
> edir=/usr/lib/man-db
> cmd="${edir}/${pgm} ${1+$@}"
> [ `id -u` = 0 ] || exec "${cmd}"
                          ^^^^^^^^
oops that should be:

[ `id -u` = 0 ] || exec $cmd

this works..  really this time it does!

its obviously too late...

-- 
Ethan Benson


Reply to: