Support mksh as /bin/sh.
Kees Cook
Reviewed-byQuoted 13 lines · On Mon, Aug 13, 2018 at 3:14 AM, <[email protected]> wrote:
From: Arkadiusz Miśkiewicz <[email protected]>
mksh needs space between ! and ( to work properly. Otherwise this happens:
+ make oldconfig
scripts/kconfig/conf--oldconfigKconfig./scripts/clang-version.sh[18]: COPYING: not found
printf: ‘__clang_major__’: expected a numeric value
printf: ‘__clang_minor__’: expected a numeric value
printf: ‘__clang_patchlevel__’: expected a numeric value init/Kconfig:24:warning: 'CLANG_VERSION': number is invalid
Quoted 1 line
Signed-off-by Arkadiusz Miśkiewicz <[email protected]>
-Kees
Quoted 20 lines
--- scripts/clang-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/clang-version.sh +1
-2@@ -12,7 +12,7 @@ compiler="$*" -if !( $compiler --version | grep -q clang) ; then +if ! ( $compiler --version | grep -q clang) ; then echo 0 exit 1 fi --2.18.0
Signature · 2 lines
Kees Cook Pixel Security
2018-08-14 7:32 GMT+09:00 Kees Cook <[email protected]>:
Quoted 14 lines · On Mon, Aug 13, 2018 at 3:14 AM, <[email protected]> wrote:
Quoted 13 lines
From: Arkadiusz Miśkiewicz <[email protected]>
mksh needs space between ! and ( to work properly. Otherwise this happens:
+ make oldconfig
scripts/kconfig/conf--oldconfigKconfig./scripts/clang-version.sh[18]: COPYING: not found
printf: ‘__clang_major__’: expected a numeric value
printf: ‘__clang_minor__’: expected a numeric value
printf: ‘__clang_patchlevel__’: expected a numeric value init/Kconfig:24:warning: 'CLANG_VERSION': number is invalid
Quoted 6 lines
Quoted 1 line
Signed-off-by Arkadiusz Miśkiewicz <[email protected]>Reviewed-by Kees Cook <[email protected]>-Kees
I could not find this patch in ML.
Arkadiusz,
Please resend this patch to
Quoted 26 lines
Quoted 18 lines
--- scripts/clang-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/clang-version.sh +1
-2@@ -12,7 +12,7 @@ compiler="$*" -if !( $compiler --version | grep -q clang) ; then +if ! ( $compiler --version | grep -q clang) ; then echo 0 exit 1 fi --Quoted 2 lines
2.18.0
--
Kees Cook
Pixel Security
Signature · 2 lines
Best Regards Masahiro Yamada