[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] "which" issue
From:       "Brian T" <btuch () usa ! net>
Date:       2004-11-30 20:20:03
Message-ID: 24aa01c4d719$fa6d7c50$fd0ba8c0 () briantpc
[Download RAW message or body]

Seems like a problem with the "which" applet looking in the current running
directoy, and then stopping if it finds a match.  I have a directory called
"cron" in the /root/ directory on an embedded unit.

[root@testhost root]# which which
/usr/bin/which
[root@testhost root]# ls -al /usr/bin/which
lrwxrwxrwx    1 root     root           17 Nov 19 11:13 /usr/bin/which ->
../../bin/busybox
[root@testhost root]# ls -al
drwx------    3 root     root            0 Nov 30 14:01 .
drwxr-xr-x   15 root     root            0 Dec 31  1969 ..
-rw-------    1 root     root         4301 Nov 30 13:29 .bash_history
-rw-r--r--    1 root     root           15 Nov 19 11:13 .bashrc
-rw-r--r--    1 root     root          478 Nov 19 11:13 .profile
-rwxr-xr-x    1 root     root       416332 Nov 19 14:58 busybox
drwxr-xr-x    3 root     root            0 Nov 19 11:13 cron
-rwxr-xr-x    1 root     root           94 Nov 19 14:38 keepalive
-rw-r--r--    1 root     root        90019 Nov 22 09:31 messages
-rwxr-xr-x    1 root     root           48 Nov 30 14:14 test
[root@testhost root]# which cron
cron
[root@testhost root]# find / -name cron
/bin/cron
/var/cron
/root/cron
[root@testhost root]# cd ..
[root@testhost /]# which cron
/bin/cron
[root@testhost /]#
[root@testhost /]# echo $PATH
/usr/sbin:/bin:/usr/bin:/sbin

-Brian



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic