On Tue, Jul 09, 2013 at 05:46:26PM +0200, Jan-Marek Glogowski wrote:
> There are also bash regexp and IFS:

bash-only, so well.

>         OLDIFS=$IFS

Missing quotes.

>         IFS=","
>         for OPT in $OPTS; do
>             if [[ $OPT =~ ^sec=krb5[ip]?$ ]]; then
>                 AUTO_NEED_GSSD=yes
>             fi
>         done
>         IFS=$OLDIFS

Missing quotes.

But with the IFS trick it would be possible to write a simple switch
case variant.

Bastian

-- 
Men will always be men -- no matter where they are.
                -- Harry Mudd, "Mudd's Women", stardate 1329.8


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to