quotemeta. The command line will be tough to test this on, since the shell will interfere.
After Compline,Zaxo
In reply to Re: Escaping a string by Zaxo in thread Escaping a string by Anonymous Monk