Try #!/bin/bash shopt -s extglob "Jari Aalto+list.cygwin" wrote: > > Isn't this supposed to work under Cygwin bash? I have "shopt extglob" > enabled. > > Jari > > a=new; > > case $a in > -d) echo 1 ;; > @(add|new)) echo 2 ;; > esac > > root@W2KPICASSO:~/config/shell/bash/complete$ bash -x ~/tmp/test.sh > + bash -x ~/tmp/test.sh > + a=new > /cygdrive/e/home/jaalto/tmp/t3.sh: line 5: syntax error near unexpected token `(' > /cygdrive/e/home/jaalto/tmp/t3.sh: line 5: `@(add|new)) echo 2 ;;' > > root@W2KPICASSO:~/config/shell/bash/complete$ shopt > + shopt > cdable_vars off > cdspell off > checkhash off > checkwinsize off > cmdhist on > dotglob off > execfail off > expand_aliases on > extglob on > histreedit off > histappend off > histverify off > hostcomplete on > huponexit off > interactive_comments on > lithist off > login_shell off > mailwarn off > no_empty_cmd_completion off > nocaseglob off > nullglob off > progcomp on > promptvars on > restricted_shell off > shift_verbose off > sourcepath on > xpg_echo off > > -- > http://tiny-tools.sourceforge.net/ > Swatch @time http://www.ryanthiessen.com/swatch/resources.htm > Convert @time http://www.mir.com.my/iTime/itime.htm > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/
-- Doug VanLeuven : 707-545-6945 (voice) 707-545-6945 (fax) Programmer/Analyst, SCWA : [EMAIL PROTECTED] Chief Engineer, USMM : [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/