[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' b
From: |
Eli Zaretskii |
Subject: |
Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ) |
Date: |
Sun, 18 Aug 2002 22:25:17 +0300 |
> Date: Fri, 16 Aug 2002 22:51:10 -0600 (MDT)
> From: Richard Stallman <address@hidden>
>
> As far as I can see, if you don't insist on an absolute file name,
> it is correct to use concat. As far as I can see, Eli's example
> is only an issue if you want an absolute file name:
>
> > It means that to produce a full file name from a relative directory
> > "c:" and a relative file name "bar", a function should yield
> > "c:./bar".
>
> Eli, is c:bar an invalid file name on MSDOS?
"c:bar" is a valid file name on DOS and Windows file systems. It
means `bar' in the default directory of the C: drive. In other words,
it's the same as "c:./bar".
> So it seems that in the case where you are happy to have
> a non-absolute file name as the result, there is no problem.
There should be no problem if none of the functions involved convert
"c:" to "c:/". I don't recall if that's so and don't have time to
check, but I wouldn't be surprised if Emacs primitives already take
care of this.
It's the case of application code doing (concat dir "/" file) is what
worries me.
- Re: Strange `file-name-sans-extension' behavior, (continued)
- Re: Strange `file-name-sans-extension' behavior, Stefan Monnier, 2002/08/12
- Re: Strange `file-name-sans-extension' behavior, Eli Zaretskii, 2002/08/12
- Re: Strange `file-name-sans-extension' behavior, Andreas Schwab, 2002/08/12
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/13
- Re: Strange `file-name-sans-extension' behavior, Eli Zaretskii, 2002/08/14
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/14
- Re: Strange `file-name-sans-extension' behavior, Eli Zaretskii, 2002/08/15
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/15
- `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Stefan Monnier, 2002/08/16
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Richard Stallman, 2002/08/17
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ),
Eli Zaretskii <=
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Stefan Monnier, 2002/08/19
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Richard Stallman, 2002/08/19
- Re: `concat' a dir and a file (was: Strange `file-name-sans-extension' behavior ), Eli Zaretskii, 2002/08/20
- Re: Strange `file-name-sans-extension' behavior, Richard Stallman, 2002/08/12