Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14921

Re: Space in 'My Documents' directory not fixed by quoting or \ escaping

From Jim Janney <jjanney@shell.xmission.com>
Newsgroups comp.lang.java.programmer
Subject Re: Space in 'My Documents' directory not fixed by quoting or \ escaping
Date 2012-05-29 16:37 -0600
Organization absinthe will make my art grow stronger
Message-ID <ydnsjeiipgz.fsf@shell.xmission.com> (permalink)
References (2 earlier) <a2jvh9FuhU1@mid.individual.net> <jq2l4h$2kl$2@news.albasani.net> <23u9s7tr13usskfhim78anlj5g8pe3q9l1@4ax.com> <899d499e-c1ad-4863-b941-575aaaac1c4b@googlegroups.com> <jq3fua$heb$1@speranza.aioe.org>

Show all headers | View raw


glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:

> Lew <lewbloch@gmail.com> wrote:
>
> (snip)
>>> But since using "/" as a path element seprator in a command line
>>> will cause trouble, people tend to avoid using them as such.
>
>> That is interesting to me. What trouble?
>
>> I have used forward slashes as path element separators in Windows 
>> command-line commands. I don't recall that it caused any trouble.
>
> The system calls, such as OPEN, accept either / or \.
> (C programmers use / for #include files, knowing it will work
> on unix or DOS/Windows, at least since DOS 3.2.)
>
> The system command line utilities, such as DIR and COPY use / for
> options, and won't accept it as part of a file path.
>
> Other command line utilities (that don't come with DOS/Windows)
> that don't use / for options likely will accept /.
>
> The Sourceforge UNXUTILS, unix-like utilities for WIN32, 
> for example, should accept /.

In early versions of MS-DOS you could put a line in CONFIG.SYS to set
the switch character to something else, usually -, which then freed up /
for use in file names.  This eventually went away, I don't remember
exactly when.  The problem was never in the API but in user code that
parsed command lines.

-- 
Jim Janney

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 05:16 -0700
  Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Silvio Bierman <silvio@moc.com> - 2012-05-29 14:32 +0200
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Nigel Wade <nmw@ion.le.ac.uk> - 2012-05-29 13:58 +0100
      Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <noone@lewscanon.com> - 2012-05-29 07:06 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-05-29 09:27 -0700
          Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <lewbloch@gmail.com> - 2012-05-29 14:07 -0700
            Re: Space in 'My Documents' directory not fixed by quoting or \ escaping glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-05-29 21:43 +0000
              Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Jim Janney <jjanney@shell.xmission.com> - 2012-05-29 16:37 -0600
            Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-05-29 14:55 -0700
              Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 16:06 -0700
                Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <noone@lewscanon.com> - 2012-06-02 09:31 -0700
                Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-06-03 19:23 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:55 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Nigel Wade <nmw@ion.le.ac.uk> - 2012-05-30 10:30 +0100
      Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:54 -0700
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:50 -0700
  Re: Space in 'My Documents' directory not fixed by quoting or \ escaping "Mike Schilling" <mscottschilling@hotmail.com> - 2012-05-29 07:31 -0700
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:59 -0700

csiph-web