|
From: | Clark WANG |
Subject: | Re: [Help-bash] ${var//!([[:class:]])} removing characters of the [:class:] |
Date: | Sun, 27 Jan 2013 08:52:17 -0800 |
> But I don't know how to explain this result:!(foobar) first matches "fooba" (the longest string not matching
>
> $ echo ${v//!(foobar)/xxx}
> xxxxxx
foobar) and replaces it with xxx
It then matches the r and replaces it by xxx
and yeah !(pattern) is not the most intuitive glob
[Prev in Thread] | Current Thread | [Next in Thread] |