bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ls -v oddity with autosave files


From: Sven Joachim
Subject: ls -v oddity with autosave files
Date: Thu, 09 Apr 2009 09:23:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

I found another oddity with ls -v in coreutils 7.2.  The placement of
Emacs autosave files is inconsistent:

,----
| % touch a .b
| % ls -lav
| total 0
| drwxr-xr-x  2 sven sven  80 Apr  9 09:02 .
| drwxrwxrwt 11 root root 240 Apr  9 09:02 ..
| -rw-r--r--  1 sven sven   0 Apr  9 09:02 .b
| -rw-r--r--  1 sven sven   0 Apr  9 09:02 a
| % touch #.b#
| % ls -lav
| total 0
| -rw-r--r--  1 sven sven   0 Apr  9 09:03 #.b#             <===== (1)
| drwxr-xr-x  2 sven sven 100 Apr  9 09:03 .
| drwxrwxrwt 11 root root 240 Apr  9 09:02 ..
| -rw-r--r--  1 sven sven   0 Apr  9 09:02 .b
| -rw-r--r--  1 sven sven   0 Apr  9 09:02 a
| % rm a .b
| % touch a .b
| % ls -lav
| total 0
| drwxr-xr-x  2 sven sven 100 Apr  9 09:03 .
| drwxrwxrwt 11 root root 240 Apr  9 09:02 ..
| -rw-r--r--  1 sven sven   0 Apr  9 09:03 .b
| -rw-r--r--  1 sven sven   0 Apr  9 09:03 a
| -rw-r--r--  1 sven sven   0 Apr  9 09:03 #.b#             <===== (2)
`----

Note that the #.b# file is listed at the top in (1) and at the bottom in
(2), despite all filenames in the directory being the same!

Sven




reply via email to

[Prev in Thread] Current Thread [Next in Thread]