test-lint: echo -e (or -E) is not portable
commit1a6d46895d30459efe2d258c6e0a208f00f2b043
authorTorsten Bögershausen <tboegi@web.de>
Sun, 17 Sep 2017 05:43:18 +0000 (17 07:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Sep 2017 01:13:47 +0000 (21 10:13 +0900)
tree3e4696f6f66be14749419de04b22fe91908aae12
parent94c9fd268d4287f6fbfef84793288479905a7e48
test-lint: echo -e (or -E) is not portable

Some implementations of `echo` support the '-e' option to enable
backslash interpretation of the following string.
As an addition, they support '-E' to turn it off.

However, none of these are portable, POSIX doesn't even mention them,
and many implementations don't support them.

A check for '-n' is already done in check-non-portable-shell.pl,
extend it to cover '-n', '-e' or '-E'.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/check-non-portable-shell.pl