Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: polikuo on July 10, 2018, 06:17:42 AM
-
Hi !
I was looking for my old codes and came across this problem.
Both find command in busybox and findutils.tcz have this behavior.
Somehow they just couldn't see the *.c files unless you're in the directory.
tc@box:~$ version
9.0
tc@box:~$ uname -r
4.14.10-tinycore64
tc@box:~$ mkdir /tmp/source
tc@box:~$ touch /tmp/source/file.c /tmp/source/file.cxx
tc@box:~$ find /tmp/source/
/tmp/source/
/tmp/source/file.cxx
/tmp/source/file.c
tc@box:~$ find /tmp/source/ -name *.c
tc@box:~$ find /tmp/source/ -name *.cxx
/tmp/source/file.cxx
tc@box:~$ which find
/usr/bin/find
tc@box:~$ realpath /usr/bin/find
/bin/busybox
tc@box:~$ tce-load -si findutils
tc@box:~$ /usr/local/bin/find /tmp/source -name *.c
tc@box:~$ cd /tmp/source/
tc@box:/tmp/source$ busybox find -name *.c
./file.c
tc@box:/tmp/source$ busybox find /tmp/source -name *.c
/tmp/source/file.c
tc@box:/tmp/source$ /usr/local/bin/find -name *.c
./file.c
tc@box:/tmp/source$ /usr/local/bin/find /tmp/source -name *.c
/tmp/source/file.c
-
Try putting the *.c in single quotes. The shell is expanding the *.c before it's passed to find.
-
Try putting the *.c in single quotes. The shell is expanding the *.c before it's passed to find.
Oh~~
There's a ".c" file in my home directory, silly me.
Sorry for the noise. :-[