I can't see any POSIX on that... Where do you see that?
Thanks for that convenient link.
The arguments following the last options and option-arguments are named "operands".
(Emphasis mine.)
Also on that page, under the heading "Utility Syntax Guidelines":
- Guideline 9:
- All options should precede operands on the command line.
"Should" and "guidelines" may not be the strongest of words, but the intent seems clear enough for me.
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
| [reply] [d/l] |
Thank you so much for your help- for finding where that was. After reading the discussion here I have no doubts that the best thing to do is expect options before operands.
The slight preference of listing paths before options would not be worth the confusion and added bugs at all.
POSIX ( SUS?, i guess we'll be calling it at some point.. ) has some *must* haves, and *should* haves to qualify for a true POSIX os/app/lib/whatever. I think this case is clearly not a *must* have.. But then, wiping yourself after you #2 is also not a *must* do. So.. options before operands it is.
And I like what merlyn said, makes a ton of sense. I once saw somewhere that a good utility is liberal in what it accepts as input and conservative in what it outputs.. And how people should be more like that. Sigh.
| [reply] |