www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/25/03:35:21

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Forgive my ignorance, but can someone answer a question for me?
Date: Mon, 24 Feb 1997 22:39:17 -0800
Organization: Alcyone Systems
Lines: 26
Message-ID: <33128915.4B54D12E@alcyone.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970218115812 DOT 20000D-100000 AT is>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote:

> The port of `bash' uses double slash "//d/djgpp/bin".  This is AFAIK
> the only way this can work, since Unix programs explicitly code the
> `/' character as the first character of absolute pathnames; any other
> prefix character will still need DOS-specific code.
> 
> However, building this convention into DJGPP means you have to rewrite
> some low-level file-oriented functions, because DOS knows nothing
> about such filenames (the current code in libc collapses multiple
> slashes into a single slash).

As do most Unix shells:

    max AT newton:~% ls Tmp
    array       array.cc    array.o
    max AT newton:~% ls Tmp//array.cc
    Tmp//array.cc

-- 
       Erik Max Francis, &tSftDotIotE / email:  max AT alcyone DOT com
                     Alcyone Systems /    web:  http://www.alcyone.com/max/
San Jose, California, United States /    icbm:  37 20 07 N  121 53 38 W
                                   \
              "I am become death, / destroyer of worlds."
                                 / J. Robert Oppenheimer (quoting legend)

- Raw text -


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