[aur-general] Filenames with "_" in it

Gergely Imreh imrehg at gmail.com
Mon Jun 1 07:41:24 EDT 2009

2009/6/1 Thomas Bohn <thomas at bohnomat.de>:
> I have one package[1] in AUR which has a "_" in the original file name.
> When I put
> source=(http://downloads.sourceforge.net/bibcursed/$pkgname_$pkgver.tgz)
> in the PKGBUILD, it won't work. When I put an \ before the _ it works but
> on the AUR page this \ will also show up and break the link to the
> original file.
> Thomas

If you have underscores next to variable names, shouldn't you use {}
brackets? Because since underscores are accepted in bash variable
names, this situation can be ambiguous.
So use it like:
(And using brackets is generally a good idea, I think...)

Nevertheless, probably it worth checking out the replacement of \ on
AUR, I'll try when I have some time...


More information about the aur-general mailing list