eudev-project / eudev

Repository for eudev development
GNU General Public License v2.0
522 stars 147 forks source link

configure: test -a|o is not POSIX #189

Closed concatime closed 3 years ago

concatime commented 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 ….

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

blueness commented 3 years ago

Thanks for the contribution, its pushed. I'm surprised no one noticed this up till now. How did you catch it?

concatime commented 3 years ago

While building eudev using sbase utils and stripped dash (no internal [, no internal test, etc.).