WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Bug in busybox ls command in 2.9rc5  (Read 2948 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Bug in busybox ls command in 2.9rc5
« on: February 28, 2010, 12:31:13 AM »
cd
ln -s /bin .

The following 2 commands act as expected.
ls /bin
bin

Now try:
ls /bin | cat
ls bin | cat

The second command outputs the directory name, not its contents.
« Last Edit: February 28, 2010, 12:41:01 AM by gerald_clark »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Bug in busybox ls command in 2.9rc5
« Reply #1 on: February 28, 2010, 06:39:42 PM »
This bug also applies to
ls -1 symlink.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in busybox ls command in 2.9rc5
« Reply #2 on: February 28, 2010, 08:50:09 PM »
cd
ln -s /bin .

The following 2 commands act as expected.
ls /bin
bin

Now try:
ls /bin | cat
ls bin | cat

The second command outputs the directory name, not its contents.

ls bin/ | cat does.
10+ Years Contributing to Linux Open Source Projects.