Description of problem: mail -s <subject> doesnt' work, spitting out: send-mail: invalid option -- 's' send-mail: invalid option -- 's' send-mail: fatal: usage: send-mail [options] Version-Release number of selected component (if applicable): mailx-12.4-1.fc10.i386 How reproducible: Always Steps to Reproduce: Run: date | /bin/mailx root -s test Actual results: Error message above Expected results: Mail sent Additional info: It would be nicer if the error message said "mailx" insted of "send-mail". It's also curious that the invalid option line is printed twice.
Hello, the address to whom the message is sent have to be the last option so you have to use "date | /bin/mailx -s test root".
It is a new implementation of the "mailx" command. Now it intertpetes its command line in well-known standard way: "options" should be before "arguments". The old behaviour of the previous mailx implementation seems to never be supported. Sorry, but you have to change your scripts (if any) and habits.
It's not my script, but I'll fix it and file the bug upstream in another bugzilla. As that script hasn't changed in a while, it had to be a change in mailx, as the old one accepted it as posted. Thanks