1 |
On Tue, 2007-10-09 at 13:17 +0200, Alexis Ballier wrote: |
2 |
> > if [ "${f/config/}" != "${f}" ] |
3 |
> > Should be |
4 |
> > if [ "${f#*config*}" != "${f}" ] |
5 |
> |
6 |
> changed that one, the "semantics" looks better indeed; what is wanted |
7 |
> here is to exclude $f containing "config". Am I missing something when |
8 |
> I understand it as the exact same thing but more readable ? |
9 |
|
10 |
The former is bash specific, the later is POSIX. Both do different |
11 |
things though. |
12 |
|
13 |
Thanks |
14 |
|
15 |
Roy |
16 |
|
17 |
-- |
18 |
gentoo-dev@g.o mailing list |