Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'backslashes vs. quotes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
backslashes vs. quotes
Authored by: sjk on Dec 30, '05 11:43:22AM
Yes, single quotes would also work. I usually avoid them as I think that they tend to make thinks more messy but that might be a subjective thing.

Yep, personal preference is subjective; backslash-quoted text looks sloppier to me. I'll sometimes use them in interactive shells but avoid unnecessary usage in scripts. And I think experienced shell programmers (those I respect most anyway :-)) recommend using single- or double-quoted strings. Anyway, viewing filenames that contain backslash-quoting is more inefficiently unreadable to me than simply dropping any quotes from each end.

[ Reply to This | # ]