[Holger Levsen]
>> Is there any guarantee /bin/sh has a 'type' built-in utility?  I guess
>> it will in most cases, and if it doesn't you just don't run nscd so it
>> should be fine…
> 
> Seems better to use "if [ -x /usr/sbin/nscd ] ; then..."
> instead. Would you prefer an upload with that change?

I prefer type over testing for specific paths, to not depend on a
specific location on disk.  If nscd or other tools move from /usr/bin/
to one of the other directories in the PATH, I want our scripts to
keep working.

All the relevant /bin/sh we need to work with (dash and bash) provide
a working type command.  In fact, I am not aware of any Bource shell
compatible shell that is missing it, but guess there might be some. :)

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to