procmail
[Top] [All Lists]

multiple 'test -x '

1997-06-06 08:56:00

when the do the following, I get:

"test: too many arguments"

It works in /bin/sh just fine....

I'm just trying to do a simple test to make sure that all 3 crucial commands  
are executable

here's the recipe:


## begin

SHELL=/bin/sh

APPNMAIL='/usr/local/bin/appnmail'

FORMAIL='/usr/local/bin/formail'

GREP=/usr/local/gnu/bin/fgrep

:0
* ! ? test -x $APPNMAIL -o -x $FORMAIL -o -x $GREP
{

        LOG="

        CAN'T FIND ONE OF:
                 $APPNMAIL
                 $FORMAIL
                 $GREP
        
"       

        EXITCODE=75     
        
}

## end

any clues or alternatives?

Thanks
TjL


--
TjL <luomat(_at_)peak(_dot_)org>   / http://www.peak.org/~luomat/next/
"The best things in life are made into inferior
 versions and bundled with the latest Microsoft systems"
NeXT bookmarks: http://www.peak.org/~luomat/next/bookmarks.html

<Prev in Thread] Current Thread [Next in Thread>