author | Junio C Hamano <junkio@cox.net> | |
Fri, 2 Sep 2005 17:53:15 +0000 (10:53 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 2 Sep 2005 17:53:15 +0000 (10:53 -0700) | ||
commit | 86b13da46cd710a45a89968880c691452d5b70b4 | |
tree | 81351ad18d082a8046bed144532c70ecc1e8d8ea | tree | snapshot |
parent | 79882c2883267e16280d630730d6a8b5a86a8092 | commit | diff |
scripts: equality test '==' is not portable.
On NetBSD 3 we trigger an error:
[: ==: unexpected operator
Double-equal is accepted by bash built-in '[' and bash(1) suggests
using '=' for strict POSIX compliance (test(1) from coreutils does not
mention '=='). Eradicate their uses everywhere.
[jc: Somebody with a pseudonym kindly sent a message to let
me know about the problem privately; I do not have access to a NetBSD
box.]
Signed-off-by: Junio C Hamano <junkio@cox.net>
On NetBSD 3 we trigger an error:
[: ==: unexpected operator
Double-equal is accepted by bash built-in '[' and bash(1) suggests
using '=' for strict POSIX compliance (test(1) from coreutils does not
mention '=='). Eradicate their uses everywhere.
[jc: Somebody with a pseudonym kindly sent a message to let
me know about the problem privately; I do not have access to a NetBSD
box.]
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-resolve-script | diff | blob | history | |
git-status-script | diff | blob | history | |
templates/hooks--update | diff | blob | history |