On Thu, Apr 14, 2005 at 10:20:54AM +1200, Volker Kuhlmann wrote:
* $? sh -c "type '$PROG'"
Btw, you don't need the leading $ in your line, and then you'd leave
off the hard quotes around $PROG. You'd have: * ? sh -c "type $PROG"
Sorry, no good. The shell might see the command
>type /some/ path/aw withspacesk<
and you're lucky if it only doesn't work.
I know, and Ruud said that also, but really, back here on Planet
Earth, how many people really have spaces in their *nix paths
to standard binaries?
that the shell needs to see >type "$PROG"<
ie the $PROG must be in dquotes. Therefore
* ? test -c 'type "$PROG"'
I have no idea what the -c is you're using.
1:06am [~/Mail] 746[0]> sh
$ test -c type procmail && echo y
test: procmail: unexpected operator
$ test -c 'type `which procmail`' && echo y
$
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail