diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-02-09 19:54:08 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-03-09 05:29:51 +0100 |
commit | e02c127f8e2c5001cf90429a2ee3532d7a4e3c76 (patch) | |
tree | 78921cecbf61d16a07db05f3b79f858399b3d414 /.gitattributes | |
parent | 24a0dde01d3b64d36773e06eeb300d94992b2886 (diff) |
Simplify arguments passed to su_monkeysphere_user() and gpg_sphere
It is a healthy coding practice to keep each argument separate when
executing system calls, i.e. quote each variable separately instead of
relying on whitespace to indicate argument separation.
This patch improves argument passing like this:
a) Each argument is passed individually (not all as a single string)
b) Arguments containing no variables are not quoted
c) Dynamic arguments are double-quoted ( "$@" )
Due to su_monkeysphere_user() expanding arguments using "$*" (not "$@")
arguments are mostly¹ coollapsed into single strings, and this change is
therefore only cosmetic.
It does improve clarity, however. Also, it eases switching to safer
quoted arguments in the future.
¹As sole excepion ma/update_users line 82 has $STRICT_MODES dual-quoted.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions