Can anyone tell me what the -a in Unix shell validation conditions means?
2 answers
Quote 4.1 Bourne's built-in shells (i.e. manual, online, with anchors):
test
[
Evaluate conditional expression expr. Each operator and operand must be a separate argument.
Expressions are composed of primaries, described below in the section Bash Conditional Expressions.
test
neither accepts any options nor does it accept and ignore an argument - as signifying the end of options.
...expr1 -a expr2
True if both expr1 and expr2 are true.
+3
a source to share