Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
[opensuse] is "ls -A" broken or am I crazy?
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Mon, 17 Mar 2008 01:24:00 -0500
  • Message-id: <47DE0E80.6020004@xxxxxxxxxxxxxxxxxx>
Listmates,

According to man ls, option [-A, --almost-all] "do not list implied . and .." However, when I use ls -A or ls --almost-all, the "." and ".." files are still there?

For example, in a script that adds artist_album information to mp3 tracks, I have had to use sed to get rid of the dots like:

# list=$(ls -A | sed '/^\./d'); for i in $list; do echo "trac $i = $artist_$album-$i"; done

ls -A on its own should not include the dots in the list and sed shouldn't be required at all. So is this really a problem with "ls"? And, if it is an ls bug, where do I need to file it?

Ok, and after a week ski trip with my 8, 5 and 2 year old, I am probably a bit crazy. What says the braintrust on the ls issue.

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >