This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bash 2.05b.04 - shopt extglob not working?
- From: Doug VanLeuven <roamdad at attglobal dot net>
- To: cygwin at cygwin dot com
- Date: Sat, 09 Nov 2002 19:28:13 -0800
- Subject: Re: Bash 2.05b.04 - shopt extglob not working?
- References: <fzua51us.fsf@blue.sea.net>
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 : doug@scwa.ca.gov
Chief Engineer, USMM : roamdad@attglobal.net
--
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/