On Tue, Dec 4, 2012 at 4:22 PM, Aaron McCaleb <[email protected]> wrote:
> Oh, did you mean to say 'RTFM n00b!'? Are you implying that all arguments > listed on manpages must strictly adhere to the order in which they are > listed in the first examples on the manpage? I have never assumed those > examples to be an exclusive list of argument permutations. For instance: > Sometimes, yes. Permuted parameters are a GNUism; many versions of mailx predate GNU-style getopt or do not use it, since they implement SVID-style mailx instead of GNU extensions, and DO NOT implement permuted parameters; with these versions, the options must come BEFORE non-option parameters. (I don't know if this is true of RHEL5.) If you don't do this, it may hand off to sendmail which may see the unexpected parameters and assume it's running with elevated privileges. Just to repeat that: it is NOT guaranteed that you can slap anything anywhere in a command line and it'll figure out what you meant. In particular, POSIX compliance does not require GNU-style parameters, in particular GNU-style permuted options. -- brandon s allbery kf8nh sine nomine associates [email protected] [email protected] unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Tech mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
