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

Re: bash brace expansion question



On Tue, Feb 04, 2003 at 01:10:45PM -0500, Drew Cohan wrote:
> Why is
> 
>  
> 
> echo /path/to/dir/*.{jpg,JPG,jpeg,JPEG}
> 
>  
> 
> illegal?

It's not, merely not portable to POSIX shells other than bash. However,
you may want to 'shopt -s nullglob' in case some of the parts of that
wildcard don't expand to anything.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: