[Pm-utils] [patch commit] More minor cleanups

Dan Nicholson dbn.lists at gmail.com
Wed Jan 30 12:42:33 PST 2008


On Jan 30, 2008 12:23 PM, Victor Lowther <victor.lowther at gmail.com> wrote:

> I am especially interested in a more robust version of 0003.

I only looked at this patch. You can just use the return status of
`type' for the function. No grepping is necessary.

prog_exists()
{
    type "$1" >/dev/null
}

--
Dan


More information about the Pm-utils mailing list