11 Jan
2014
11 Jan
'14
1:10 a.m.
Hi On Fri, Jan 10, 2014 at 4:32 PM, Jason St. John <jstjohn@purdue.edu> wrote:
You should quote the link in the source array and any string that includes a Bash variable (e.g. use `install -Dm 755 "$pkgname-go-$pkgver" "$pkgdir/usr/bin/$pkgname-go"`).
Could you please please explain it? Why bash variables need quotes? Well, $srcdir/$destdir need double-quotes because they might contain spaces (although creating dirs with white-spaces on UNIX is a dumb idea). What about other variables like $pkgver? The same question applied to other parts of PKGBUILD - why quotes are needed for dependencies, license, arch, sources...?