2008/5/18 Miklos Vajna <[EMAIL PROTECTED]>: > On Sat, May 17, 2008 at 09:54:14PM +0200, Xavier <[EMAIL PROTECTED]> wrote: >> So maybe instead of : >> cd "$srcdir/$pkgname-$pkgver" >> we could use : >> cd ${srcdir}/$pkgname-$pkgver >> ? > > that would be totally illogical. the point of using ${foo} instead of > $foo is that in some cases you really need ${foo}: > > source=($pkgname_$pkgver) won't work, but source=(${pkgname}_$pkgver) > will. (just an example but probably you got the point). because of this, > some projects (like gentoo) force the usage of ${foo} everywhere. > > this is not related to spaces, to deal with them, you always need > quotes. >
I already said it was stupid, but it is also illogical if you like :) I was just confused. And the fact that it worked with zsh, which is my primary shell, confused me even more. After Travis answer, I remembered it was probably just for separating the variable names. But thanks for confirming this is indeed the main reason. _______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://archlinux.org/mailman/listinfo/pacman-dev