This question is somewhat similar to this: Unix/Linux command syntaxSuppose I have a program foo that takes arguments -a and -b. If both a and b take a string argument what is the meaning of thisfoo -b -a barIf multiple b:s are allowedfoo -b -a -b??Is there a true specification of the command line syntax somewhere?
Standard command line syntax ambigiuty in interpretation rules?
command line;standard
Unless you can find something that says option arguments can't start with a minus sign, then the only possible interpretation is-b=-abarSee also: POSIX Utility Conventions.