On Tue, 1999-08-31 16:57:52 -0700, Thimble Smith wrote:
Usually the best way to handle it is to use single quotes (') around the
word with special characters. If that word itself contains single quotes,
you can escape them with a backslash:
$ mysql -p 'p$s!w\'(d'
On some shells (having Bash in mind) a single quote delimited string
simply can't contain single quotes and no character, not even the
backslash, has special meaning. There you'd have to write
$ mysql -p'p$s!w'\''(d'
(i.e. three strings seamlessly joined together: 'p$s!w' and \' and '(d')
Regards,
Martin