WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Bug in busybox ls command in 2.9rc5
« on: February 27, 2010, 09:31:13 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.
« Last Edit: February 27, 2010, 09:41:01 PM 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, 03:39:42 PM »
This bug also applies to
ls -1 symlink.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Bug in busybox ls command in 2.9rc5
« Reply #2 on: February 28, 2010, 05: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.