[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dired confused by filenames starting with date-like strings
From: |
kg6mar |
Subject: |
Re: Dired confused by filenames starting with date-like strings |
Date: |
24 Aug 2006 10:43:26 -0700 |
User-agent: |
G2/0.2 |
Miles Bader wrote:
> kg6mar@gmail.com writes:
> > Dired gets confused by certain filenames in which the beginning
> > resembles a date and there is an embedded space (my photograph naming
> > convention). It fails to assemble the entire filename.
>
> This works correctly on my system, because dired invokes ls with the
> "--dired" option (a feature of GNU ls, which causes ls to output extra
> information about where the names are located).
>
> The variable `dired-use-ls-dired' controls whether dired does this or
> not. So to fix this problem, try installing GNU ls (I guess that means
> cygwin, as you're on ms-windows?) and setting dired-use-ls-dired to t.
After more testing and advice-following, it still appears to me that ls
is working as required, but dired can't parse this particular filename
correctly from the ls output. It sounds as if it works on a Unix or
linux emacs implementation but not Windows.
- Emacs 21.3.1 for Windows doesn't appear to have a variable called
dired-use-ls-dired, but I can set dired-listing-switches to "-lD" which
invokes the ls --dired option, achieving the same purpose.
- I verified that I'm using cygwin's ls. I tried the --dired option
suggested here, with no different final result.
I tested some more filenames. Of the following, the only one dired
can't Copy or Rename correctly is the last (which it takes to be
foo.txt). Again, the problematic name begins with a string that looks
like a date, and has a space after that. These are cut and pasted from
dired:
-rw-rw-rw- 1 John root 3 Aug 23 19:34 2006-08-23.txt
-rw-rw-rw- 1 John root 3 Aug 23 19:34 2006-08-23foo.txt
-rw-rw-rw- 1 John root 3 Aug 23 19:34 foo 2006-08-23 foo.txt
-rw-rw-rw- 1 John root 3 Aug 23 19:34 2006-08-23 foo.txt
I appreciate your thinking here.
-- John
- Re: Dired confused by filenames starting with date-like strings, (continued)
- Re: Dired confused by filenames starting with date-like strings, Kevin Rodgers, 2006/08/24
- Message not available
- Re: Dired confused by filenames starting with date-like strings, Miles Bader, 2006/08/24
- Re: Dired confused by filenames starting with date-like strings, Peter Dyballa, 2006/08/24
- Dired doesn't decode UTF-8 file names (was: Dired confused by filenames starting with date-like strings), Kevin Rodgers, 2006/08/24
- Re: Dired doesn't decode UTF-8 file names (was: Dired confused by filenames starting with date-like strings), Peter Dyballa, 2006/08/24
- Re: Dired doesn't decode UTF-8 file names, Kevin Rodgers, 2006/08/28
- Re: Dired doesn't decode UTF-8 file names, Peter Dyballa, 2006/08/28
- Re: Dired doesn't decode UTF-8 file names, Kevin Rodgers, 2006/08/28
- Re: Dired doesn't decode UTF-8 file names, Peter Dyballa, 2006/08/28
- Message not available
- Re: Dired doesn't decode UTF-8 file names, David Kastrup, 2006/08/28
Message not available
- Re: Dired confused by filenames starting with date-like strings,
kg6mar <=
- Re: Dired confused by filenames starting with date-like strings, Eli Zaretskii, 2006/08/24
- Re: Dired confused by filenames starting with date-like strings, Miles Bader, 2006/08/24
- Message not available
- Re: Dired confused by filenames starting with date-like strings, B. T. Raven, 2006/08/25
- Re: Dired confused by filenames starting with date-like strings, Eli Zaretskii, 2006/08/26
- Message not available
- Re: Dired confused by filenames starting with date-like strings, B. T. Raven, 2006/08/26
- Re: Dired confused by filenames starting with date-like strings, Miles Bader, 2006/08/26
Message not available