delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/01/14:24:40

Sender: crough45 AT amc DOT de
Message-Id: <97May1.200126gmt+0100.16660@internet01.amc.de>
Date: Thu, 1 May 1997 19:05:23 +0100
From: Chris Croughton <crough45 AT amc DOT de>
Mime-Version: 1.0
To: eliz AT is DOT elta DOT co DOT il
Cc: djgpp AT delorie DOT com
Subject: Re: problem with glob()

Eli Zaretskii wrote:

> Yes, that's correct.  This is so hidden files/directories 
> aren't found by the command-line globbing, exactly as it 
> works on Unix.

But on Unix you can override it by saying 

  $ a.out .*

which will return all the normally hidden files starting with
a dot.  How about doing that in MSDOS - as files starting with
dot are invalid, remove the dot and allow only hidden files
just like in Unix?

That would allow, to look at all files you would say:

  C:> a.exe .* *

equivalent to Unix

  $ a.out .* *

(all 'hidden' files first, then the normal ones).  And to use
a hidden file just precede it with a dot (exceptions being
the first two directory entries, . and .., which are easy
enough to detect and actually return them as . and .. instead
of the extra dot).

Does this make any kind of sense to anyone except me?

Chris

- Raw text -


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