[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: foo* doesn't match when 'foobar' does; fname=FooBar on xfs w/naming
Re: foo* doesn't match when 'foobar' does; fname=FooBar on xfs w/naming "ci" option
Wed, 08 Dec 2010 15:48:23 -0000
Linda Walsh wrote:
> I'm not sure if this is bash specific...I'd wager not, but I'm not sure
> where to put it.
> I created an xfs file system with the naming version=ci, (case-ignore)
> This causes it to match filenames with case ignored.
> So an exact match of a file name matches with the case begin ignored,
> i.e. 'foobar' matches 'FooBar'.
> But foo* doesn't match.
> Does something need to happen for case to be ignored in wildcards, on this
> file system?
> The bash option to ignore case in wildcards wouldn't be a correct option
> for this, as that would cause it to ignore case on all file systems
> (if I understand it correctly).
> So how can I get case ignored in wildcards, but only on this file system
> consistent with it's creation options? (version=ci is an option at file
> system creation time).
> Does bash use a generic regex library or does it have its own?
Have you tried to set
shopt -s nocaseglob
|[Prev in Thread]
||[Next in Thread]|
- Re: foo* doesn't match when 'foobar' does; fname=FooBar on xfs w/naming "ci" option,