I was wondering about this too.  /etc/rc does this:

        if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
                kldload linux > /dev/null 2>&1
        fi

Works better for me if I add parens to the "if ! ..." bit:

        if ! ( kldstat -v | grep -E 'linux(aout|elf)' > /dev/null ); then

Hmm, "man sh" promises that the first variant should work, but when
I try this:

if ! pwd | cat /dev/null; then
        echo yup
else
        echo nope
fi

it prints "yup".  Also prints "yup" if I remove the "!".  Shell bug?!

(Apr 6 vintage current).

++sakari

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to