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

Typo? | 8 comments | Create New Account
Click here to return to the 'Typo?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: babbage on Nov 21, '03 12:45:05PM

Doh! The backslashes were in when I previewed it. This CMS takes HTML, chews it through a blender, and spits out something unrecognizeable, eh? Let me try that end code block again:

% sudo cp -Rp \
    /Previous\ System/Previous\ System 1\
    /System/Library/SyncServices/PalmBladeConduit.bundle \

If that gets mangled again, I'm putting a backslash character at the end of each of the first three lines, but not the last line. The first line has a space between the '-Rp' and the backslash (probably works either way, but clearer with the space), the second line does not have a space after the '1' and its backslash, and the third line does have a space after '.bundle' and before its backslash.

The spacing is significiant, particualrly in the second line, because you're forcing the shell to insert a linebreak & yet to ignore it, and I think the behavior of any whitespace before the backslash is undefined (i.e. it might be taken literally, and you'll get an error about a missing file).

Of course, if the slashes are all visible this time, then the previous disclaimer can be safely ignored :-)


[ Reply to This | # ]

Authored by: Krioni on Jan 17, '04 06:30:27PM

When doing code in postings, I always COPY my whole message, hit the Preview button and if it looks good, PASTE back in what was written before the Preview. Then I post that. I find that on many sites the Preview step mangles things.

[ Reply to This | # ]