On Wed, 12 Mar 2008, Michael Dykman <[EMAIL PROTECTED]> wrote:
  You misunderstand.  I realize that putting the password on the command
  line is insecure in the presence of "ps auxwww" and Process Explorer
  and such.  I'm kvetching about how mysql and mysqldump parse their
  arguments, that
  * -uUSERNAME and -pPASSWORD are parsed similarly
  * -u USERNAME and -p UNRELATED_ARGUMENT are not

It's quite simple; -p, --password takes an optional argument which
it will only look for if
   a) the short form is immediately followed by a non-space char

I thought I'd made it clear above that I understand the rule.  I am
complaining (in a forum where no maintainer is likely to be present,
unfortunately) that it was a bad design that made -p be parsed
differently from -u and likely all the other switches.  A wise
consistency is useful, because users have to remember fewer rules.

--
Tim McDaniel, [EMAIL PROTECTED]

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to