[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#715478: Correctly match *,sec=krb5,*



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


Reply to: