Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: gerald_clark on February 28, 2010, 12:31:13 AM

Title: Bug in busybox ls command in 2.9rc5
Post by: gerald_clark 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.
Title: Re: Bug in busybox ls command in 2.9rc5
Post by: gerald_clark on February 28, 2010, 06:39:42 PM
This bug also applies to
ls -1 symlink.
Title: Re: Bug in busybox ls command in 2.9rc5
Post by: roberts 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.