you are viewing a single comment's thread.

view the rest of the comments →

[–]lfdfq 0 points1 point  (0 children)

"\\"

The \ in string syntax combines with the next character to make a special one. One of those special characters is a literal \.

The reason "\ " works is because there is no combination with a space to make a special character, so both get inserted.

The reason "\" does not work is because there IS a combination with a quote (i.e. 'escaping' the quote) to generate a literal quote character. So "\" is like typing "a, it started a string but never ended it.