public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Benjamin Riefenstahl <benny@crocodial.de>
To: Fabio Vignoli <bafio@dist.unige.it>
Cc: Jan-Jaap van der Heijden <janjaap@Wit381304.student.utwente.nl>,
	GNU-Win32 list <gnu-win32@cygnus.com>,
	Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
Subject: Re: Problems with mingw32 GCC 2.8.0 !!!
Date: Thu, 29 Jan 1998 04:47:00 -0000	[thread overview]
Message-ID: <34D05948.183037BA@crocodial.de> (raw)
In-Reply-To: <Pine.SOL.3.95.980128150708.11882A-100000@gort>

Fabio Vignoli wrote:
> Just to joke:
> try in a MSDOS shell on windows NT : cd Program Files (it works)
>                                      cd "Program Files" (it works)
>                                      dir Program Files (DOES NOT WORK!!!)
>                                      dir "Program Files" (it works)
> Does anybody can tell me why?

;-)

If I had to guess I'd say it's just programmer's laziness and probably
backwards compatibility afterwards. You have to remember that in
DOS/Windows the command line is not parsed by the shell but by the
programs themselfs. That makes for a lot of inconsistencies between
applications and commands and seemingly even between command.com
built-ins.

The story probably was: The cd command has no options (or at least it
didn't use to), so the programmer of command.com did not bother to parse
the command line, he just took it and used it as a whole. In later
versions he added code to strip the quotes for compatibility with other
commands but he didn't use the full command-line parser, because that
might not have been backwards compatible with the use of the cd command
in older batch scripts. The dir command OTOH has a lot of options, so
the command line *has* to be parsed and after parsing Program Files
becomes two arguments.

All just guesswork, of course ;-)
======================================
Benjamin Riefenstahl (benny@crocodial.de)
Crocodial Communications EntwicklungsGmbH
Ophagen 16a, D-20257 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  parent reply	other threads:[~1998-01-29  4:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-18 16:07 [ANNOUNCE] mingw32 GCC 2.8.0 based toolchain available Jan-Jaap van der Heijden
1998-01-20 14:58 ` Paul Garceau
1998-01-24 15:34   ` Jan-Jaap van der Heijden
1998-01-27  2:27     ` Problems with mingw32 GCC 2.8.0 !!! Fabio Vignoli
1998-01-27  8:52       ` Mumit Khan
1998-01-27 16:21       ` Jan-Jaap van der Heijden
1998-01-28  0:46         ` Mikey
1998-01-28 14:54         ` Fabio Vignoli
1998-01-28 21:10           ` Isaac Kohn
1998-01-29  4:47           ` Benjamin Riefenstahl [this message]
1998-01-27  5:51 Earnie Boyd
     [not found] <Pine.LNX.3.96.980128215032.3179A-100000@zoo-station.student.utwente.nl>
1998-01-28 14:54 ` Mikey
     [not found] <Pine.LNX.3.96.980128204057.2538A-100000@zoo-station.student.utwente.nl>
1998-01-28 15:02 ` Mikey
1998-01-31  5:38   ` Tomas Fasth
1998-01-28 22:17 Colin Peters

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34D05948.183037BA@crocodial.de \
    --to=benny@crocodial.de \
    --cc=bafio@dist.unige.it \
    --cc=colin@bird.fu.is.saga-u.ac.jp \
    --cc=gnu-win32@cygnus.com \
    --cc=janjaap@Wit381304.student.utwente.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).