Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: tacticalogic
It could just as easily be argued that the forward slash already had a perfectly valid use as a division operator and appropriating it for use as a directory separator was unacceptable.

In practice, using the escape operator as the separator causes a lot more problems. That's because you use the escape operator when specifying literal strings, whereas the forward slash as the division operator never conflicts with the forward slash as the path separator.

It's interesting that in its internal APIs, Windows is perfectly happy to accept either slash as the separator. It's only at the command line level that you have to use back-slash. That's because they chose the division operator as the command line option delimiter, instead of the subtract operator, which is what Unix uses.

72 posted on 07/22/2015 2:09:09 PM PDT by cynwoody
[ Post Reply | Private Reply | To 69 | View Replies ]


To: cynwoody
It's interesting that in its internal APIs, Windows is perfectly happy to accept either slash as the separator. It's only at the command line level that you have to use back-slash. That's because they chose the division operator as the command line option delimiter, instead of the subtract operator, which is what Unix uses.

Used to be. Powershell has pretty well supplanted cmd for command line operations, and it's agnostic as far as which way the slashes go for path specifications.

73 posted on 07/22/2015 2:25:06 PM PDT by tacticalogic
[ Post Reply | Private Reply | To 72 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson