delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/29/04:33:44

From: ikohn AT vertex DOT ucls DOT uchicago DOT edu (Isaac Kohn)
Subject: Re: Problems with mingw32 GCC 2.8.0 !!!
29 Jan 1998 04:33:44 -0800 :
Message-ID: <Pine.SOL.3.96.980128230725.21256F-100000.cygnus.gnu-win32@vertex.ucls.uchicago.edu>
References: <Pine DOT SOL DOT 3 DOT 95 DOT 980128150708 DOT 11882A-100000 AT gort>
Mime-Version: 1.0
To: Fabio Vignoli <bafio AT dist DOT unige DOT it>
Cc: Jan-Jaap van der Heijden <janjaap AT Wit381304 DOT student DOT utwente DOT nl>,
GNU-Win32 list <gnu-win32 AT cygnus DOT com>,
Colin Peters <colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp>

> 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?

I assume the reason is that 'cd' never takes more than one arg, namely,
the directory to change to -- whereas dir can take many options and
switches and whatnot.  Because of this, cd knows that everything on the
command line is a directory name and it can allow this sort of thing --
whereas dir cannot allow this because it needs to look for other
arguments.

regards,
isaac

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019