[arch-dev-public] Let's agree on a common coding style

Jan de Groot jan at jgc.homeip.net
Sat Feb 13 16:48:54 EST 2010

On Sat, 2010-02-13 at 16:55 +0100, Dieter Plaetinck wrote:
> source is a bashism. '.' is sh, but source is easier to grep for, so i
> suggest to use 'source' when the script is bash and you're pretty sure
> it will stay bash. '.' otherwise.
> ${bar} should only be used when it's needed. 

source is bashism and shouldn't be used if there's a plain posix-style
alternative. Also, why would you grep for "source" in a PKGBUILD if it
will just return all PKGBUILDs because they contain source= lines.

As for ${bar}: I would like to have that enforced for consistency.

More information about the arch-dev-public mailing list