delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/04/06:54:52

Date: Sun, 4 May 1997 13:38:32 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Croughton <crough45 AT amc DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: problem with glob()
In-Reply-To: <97May1.200126gmt+0100.16660@internet01.amc.de>
Message-ID: <Pine.SUN.3.91.970504133807.9215J-100000@is>
MIME-Version: 1.0

On Thu, 1 May 1997, Chris Croughton wrote:

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

I'm not sure this won't make problems.  Recall that Windows 9x allows
leading dots.  But feel free to post a source patch for `glob' that
works like you describe.

(Personally, I think this is largely a non-issue.  Why would anybody
need to have hidden files on MS-DOS anyway?  Just unhide them and live
happily ever after.)

Btw, "a.out foobar" works with DJGPP even if foobar is hidden,
i.e. `glob' doesn't fail if you mention the filename explicitly.

- Raw text -


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