
Shell special chars in file names?
A perl script I'm writing outputs a /bin/sh script. However,
if it generates a filename like "/home/blah/The File" the
sh script really should output "foo /home/blah/The\ File"
Right now I'm dealing with that via:
$filename = s/ /\\ /g;
However, I should also do this for all special sh chars.
1. Is there a way to do all the special chars in one substitution?
2. Is there a definitive list of what those chars are?
Thanks in advance,
Tom
--
History will judge our times not | Disclaimer: I do not
by the ferocity of our enemies, | speak for Mentor Graphics.
but by the silence of our friends! |