Closed concatime closed 3 years ago
I faced test: too many arguments when building Linux-PAM using sbase. This is due to a non-POSIX syntax test ... -a ... and test … -o ….
test: too many arguments
test ... -a ...
test … -o …
The XSI extensions specifying the -a and -o binary primaries and the '(' and ')' operators have been marked obsolescent.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
Related, https://github.com/linux-pam/linux-pam/pull/311 and https://github.com/karelzak/util-linux/pull/1216
Thanks for the contribution, its pushed. I'm surprised no one noticed this up till now. How did you catch it?
While building eudev using sbase utils and stripped dash (no internal [, no internal test, etc.).
[
test
I faced
test: too many arguments
when building Linux-PAM using sbase. This is due to a non-POSIX syntaxtest ... -a ...
andtest … -o …
.https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
Related, https://github.com/linux-pam/linux-pam/pull/311 and https://github.com/karelzak/util-linux/pull/1216