On Wed, Jul 16, 2008 at 10:40:17PM +0200, j3d1f0x <[EMAIL PROTECTED]> wrote:
> But, for me, that line is magic :
> $ echo ${foo/bar/baz}
> http://mirror.sourceforge.net/baz-1.0.tar.bz2
> 
> For me,
> $ echo ${foo/bar/baz} must do
> http://mirror.sourceforge.net/bar-1.0.tar.bz2/baz-1.0.tar.bz2

That's not correct.

> So, it is just a replacement ?

Yes.

> Then, if I have an adress like that for ${foo} :
> http://mirror.sourceforge.net/blablabla/bar-1.0.tar.bz2
> so, ${foo/bar/baz} =
> http://mirror.sourceforge.net/blablabla/baz-1.0.tar.bz2
> ?

Yes.

> 
> And, if I have the same adress for ${foo},
> so, ${foo/blablabla/bla} =
> http://mirror.sourceforge.net/bla/bar-1.0.tar.bz2
> ?
> 
> It seems to be like "sed" if it is right, no ?

Right. Except that it's much faster. Given that we regularly do
something like:

for i in `find . -name FrugalBuild`
do
        source $i
done

speed matters a lot.

Attachment: pgpRal1HZ5Jpi.pgp
Description: PGP signature

_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to