I checked a script of mine with checkbashisms and I got the following warnings:
possible bashism in check_ssl_cert line 821 (test -a/-o):
if [ -n "${ALTNAMES}" -a -n "${COMMON_NAME}" ] ; then
In section 4.62.4 of the POSIX specs I find
primary -a primary Performs a binary and of the results of primary and primary. The -a operator has precedence over the -o operator.
Why are -a
and -o
considered non-portable?