Re: parse-namestring and logical pathnames



On Sep 28, 4:37 pm, Richard M Kreuter <kreu...@xxxxxxxxx> wrote:
Madhu <enom...@xxxxxxxx> writes:
Allegro is the only implementation that does NOT frob the case of
the specified pathname in ANY WAY.  I find that useful behaviour.
The fact that other implementations frob the name during translation
is the problem[1].
<snip>
[1] imo because they misweigh the imporatance of what the says about
uppercase in the implementation choices open to them.

I disagree.  The intent of the lettercase stuff in the pathnames
specification is to let you say

  (make-pathname :name "FOO" :type "LISP" :case :common)

on any Lisp and with any pathname host and get back a pathname that
maps to a filename using the standard file naming conventions of
whatever file system the file happens to be on (i.e., "FOO.LISP" on
TOPS-20, "foo.lisp" on Unix).  Failing to map uppercase in LPNs or
common case in MAKE-PATHNAME to lowercase on Unix pointlessly
reinvents the portability problems that common case and LPNs were
intended to solve.

Mentioning TOPS-20 in *any* discussion involving pathanames is beneath
contempt. :)

Besides, lowercasing in Unix is wrong as the file system is case-
sensitive.

Cheers
--
Marco

.



Relevant Pages

  • Re: parse-namestring and logical pathnames
    ... pathname system to make it possible to access any file with a physical ... So, in that light, the intent of the logical pathname system is to allow ... and be able to access this on any file system. ... systems would be to not do any file translation and to have people use ...
    (comp.lang.lisp)
  • Re: parse-namestring and logical pathnames
    ... the specified pathname in ANY WAY. ... lowercasing in Unix is wrong as the file system is case- ... I thought the case-sensitivity depends on the file ...
    (comp.lang.lisp)
  • Re: Question regarding to store file system metadata in database
    ... randomly pick pathname from 1.2 million path names to resolve the ... essentially did directory entry lookup sequentially, ... pathname to physical pathname should be transparent to end users. ... The file system should be able to tell the different ...
    (Linux-Kernel)
  • Re: Question regarding to store file system metadata in database
    ... essentially did directory entry lookup sequentially, ... need some extension on existing file systems. ... pathname to physical pathname should be transparent to end users. ... The file system should be able to tell the different ...
    (Linux-Kernel)
  • Re: parse-namestring and logical pathnames
    ... the specified pathname in ANY WAY. ... The fact that other implementations frob the name during translation ... reinvents the portability problems that common case and LPNs were ...
    (comp.lang.lisp)