[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expand-file-name leaves "/../" in expansions at times
From: |
Miles Bader |
Subject: |
Re: expand-file-name leaves "/../" in expansions at times |
Date: |
Wed, 18 Apr 2007 12:45:42 +0900 |
Eli Zaretskii <address@hidden> writes:
>> I always thought it was a rather clever idea. It certainly messes up
>> assumptions some programs make, but I think the "/.." == "/" assumption
>> is generally rather rare in practice. [Compare to the microsoftian "//"
>> superroot syntax, which messes up the far more common "//" == "/"
>> assumption, and just generally feels a lot more arbitrary.]
>
> The Microsoft // doesn't mess up anything because on Microsoft
> filesystems // != /.
My point was that lots of (unixoid) _apps_ assume // = /, and it's
rather common to "prettify" filenames by doing the equivalent of "sed
address@hidden//@/@" [*] -- which screws up filenames using the MS superroot.
The reason many unixoid apps do such prettification is that filenames
inadvertently containing "//" at the beginning are pretty common too,
e.g. when you have a Makefile that does "FOO_DIR = $(INSTALL_ROOT)/foo"
and INSTALL_ROOT is "/".
-Miles
--
A zen-buddhist walked into a pizza shop and
said, "Make me one with everything."
- expand-file-name leaves "/../" in expansions at times, Diane Murray, 2007/04/16
- Re: expand-file-name leaves "/../" in expansions at times, Chong Yidong, 2007/04/16
- Re: expand-file-name leaves "/../" in expansions at times, Jason Rumney, 2007/04/17
- Re: expand-file-name leaves "/../" in expansions at times, Jan Djärv, 2007/04/18
- Re: expand-file-name leaves "/../" in expansions at times, Richard Stallman, 2007/04/18
- Re: expand-file-name leaves "/../" in expansions at times, Glenn Morris, 2007/04/19
- Re: expand-file-name leaves "/../" in expansions at times, Miles Bader, 2007/04/19
- Re: expand-file-name leaves "/../" in expansions at times, Glenn Morris, 2007/04/19
- Re: expand-file-name leaves "/../" in expansions at times, Glenn Morris, 2007/04/19
- Re: expand-file-name leaves "/../" in expansions at times, Stefan Monnier, 2007/04/19