On Tue, Feb 15, 2005 at 06:17:05PM -0500, Michael K. Edwards wrote:
> Lines in /etc/init.d/autofs which contain "grep -E" (e. g., in
> umount_loopback) cause the script to fail if the pattern doesn't match
> (e. g., if there is a non-autofs loopback mount live at the time that
> /etc/init.d/autofs stop is run, for instance during the package
> configuration following upgrade).

I am completely unable to reproduce this:

trofast:~# cat test.sh
#! /bin/sh
set -e
if [ x`echo foo | grep bar` != 'x' ]; then
        echo foo is bar
fi
echo we get here
trofast:~# bash test.sh
we get here
trofast:~# dash test.sh
we get here
trofast:~# posh test.sh
we get here
trofast:~# zsh test.sh
we get here

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to