PDA

View Full Version : Is there any use for the backslash besides DOS path names?


SmackFu
03-16-2001, 08:06 PM
There had to be a reason it was put on the keyboard in the first place, right?

Montfort
03-16-2001, 08:21 PM
I can't answer the OP, but I will add that Paul Allen (of Portland Trailblazers, Seattle Seahawks, and the EMP fame) takes credit for requiring a \ in DOS path names.

Lord Jim
03-16-2001, 08:34 PM
I think that the only reason it is one the keyboard is to use in path names. DOS's use of backslashes instead of forward slashes started from the very inception of DOS. Along with making path names case insensitive, they were part of the early ideas to differentiate it from Unix and claim to be more user friendly.

Of course, you couldn't do things like /\/\/\/\/\/\ or /////\\\\\ (I know SpiderWoman couldn't live without them).

Jim

bibliophage
03-16-2001, 08:56 PM
HOW ASCII GOT ITS BACKSLASH
(http://www.bobbemer.com/BACSLASH.HTM)

johnson
03-16-2001, 08:58 PM
Well, it's also used for QuickWords in WordPerfect...

cameron
03-16-2001, 09:02 PM
Originally posted by Montfort
I can't answer the OP, but I will add that Paul Allen (of Portland Trailblazers, Seattle Seahawks, and the EMP fame) takes credit for requiring a \ in DOS path names.

IIRC, DOS originally did not have hierarchical directories. Forward slash was used for options on commands, similar to dashes in Unix. Later, when hierarchical directories were added, the forward slash was already used.

It is still annoying however.

Rysdad
03-16-2001, 09:28 PM
--:)
////\\\\

(or something like that)

Spider Woman wouldn't be the same without it.

tomndebb
03-16-2001, 11:19 PM
The backslash is also used as a "not" character in a few places. REXX, for example, may be ported between ASCII and EBCDIC platforms. While EBCDIC had a "not" character for use in COBOL and a few other applications (it appears as a hyphen with a short, downward tail on the right side and its keystroke was SHIFT+6, where the carat is on ASCII keyboards), that character does not appear in ASCII, so the backslash was included in the REXX character set.

dropzone
03-16-2001, 11:24 PM
Integer division in BASIC, ie: 9\2=4 (the remainder is discarded)

dtilque
03-16-2001, 11:59 PM
A backslash is used in the C language for escaping certain characters in string and character literals.

Joe_Cool
03-17-2001, 12:18 AM
Originally posted by dtilque
A backslash is used in the C language for escaping certain characters in string and character literals.

also in PERL, in Regular Expressions, and in UNIX Shells.

Bboy
03-17-2001, 01:27 AM
____ ____ ____ __ __ ____ ____ ______
/ |\ / __/|/ _ ' / /|/ /| / |\| \\/_ __/|
/ | | | |--\/ //\// / / / / / | | | D |\_/ /|_|/
/ -- | |\--/ || \\_ / / / / / / -- | | - // / / /
/__//|_| |/___//\___//_/ /_/ / /__//|_| |_|\_\\/_/ /
\__\|\__\|\___/ \__/\_\/\_\/ \__\|\__\|\_\\_\\_\/

which I'll admit, I suck at.

Napier
03-17-2001, 07:10 AM
Backslashes are often used to delimit comments in computer code, for example
\ At the beginning of a line, or
\* with an asterisk to form left and right delimiters *\