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')
Martin Ramsch <m.ramsch@stripped> <URL: http://home.pages.de/~ramsch/ >
PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26 E4 EC 80 58 7B 31 3A D7