[Bug 1019316] Re: ls gives incorrect directory listing
C de-Avillez
hggdh2 at ubuntu.com
Fri Jun 29 20:48:22 UTC 2012
Thank you for opening this bug and helping make Ubuntu better. I know of
at least one situation where this can happen -- but I do not know if it
applies to you:
0. open a terminal; on it, follow steps 1-4
1. mkdir /tmp/test/here
2. cd /tmp/test/here
3. touch a
4. ls
You should now see the file 'a' under this directory structure.
5. open *ANOTHER* terminal, and do NOT close the first. On this new terminal:
6. rm -rf /tmp/test/here
7. Go back to the FIRST terminal
8. ls
You should see zero files
8. Go to the SECOND terminal
9. mkdir /tmp/test/here
10. touch /tmp/test/here/b
11. ls
You should see the file 'b' you just touched.
12. go back to the FIRST terminal
13. ls
You will see NO files.
This is expected, and not an error.
Now, how did you go? Who creates the directories? Removes them? Please
give us more details on what is going on in the background.
** Changed in: coreutils (Ubuntu)
Importance: Undecided => Low
** Changed in: coreutils (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1019316
Title:
ls gives incorrect directory listing
Status in “coreutils” package in Ubuntu:
Incomplete
Bug description:
/* At this point I am expecting some files in /TEST/EXPORT, want to see them in received order... */
ubuntu at test-0001:~/TEST/EXPORT$ ls -ltr
total 0
/* None???!!! what? */
ubuntu at test-0001:~/TEST/EXPORT$ ls
/* Huh? - seen this many times now...I know the trick to making it
work...*/
ubuntu at test-0001:~/TEST/EXPORT$ cd ..
ubuntu at test-0001:~/TEST$ cd EXPORT
ubuntu at test-0001:~/TEST/EXPORT$ ls -ltr
total 32
-rw-rw-r-- 1 ubuntu ubuntu 241 Jun 29 15:51 AA_TEST000002_20120629145129_abcde_efghi_20120629145127.kkk
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:03 AA_TEST000002_20120629150314_xyz
-rw-rw-r-- 1 ubuntu ubuntu 242 Jun 29 16:06 AA_ABC1234568_20120629150615_abcde_efghi_20050101120218.kkk
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:06 AA_TEST000002_20120629150643_xyz
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:10 AA_TEST000002_20120629151012_xyz
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:13 AA_TEST000002_20120629151342_xyz
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:17 AA_ABC1234568_20120629151707_xyz
-rw-rw-r-- 1 ubuntu ubuntu 20 Jun 29 16:17 AA_TEST000002_20120629151711_xyz
/* That's more like it!!! */
ubuntu at test-0001:~/TEST/EXPORT$ ls --version
ls (GNU coreutils) 8.13
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
ubuntu at test-0001:~/TEST/EXPORT$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1019316/+subscriptions
More information about the foundations-bugs
mailing list