Ticket #1646 (closed defect: wontfix)
$PATH not correctly honoured by the shell?
|Reported by:||Strolls||Owned by:||openmoko-devel|
|Blocking:||Estimated Completion (week):|
Using 2007.2 (default factory image, then opkg update && opkg upgrade) $PATH does not seem to be honoured by the shell.
root@om-gta02:~# shutdown -fh now -sh: shutdown: not found root@om-gta02:~# find / -name shutdown /usr/lib/opkg/alternatives/shutdown /sbin/shutdown root@om-gta02:~# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin: root@om-gta02:~# /sbin/shutdown -fh now Broadcast message from root (pts/0) (Sun Jul 20 12:21:16 2008): The system is going down for system halt NOW! root@om-gta02:~# Connection to 192.168.0.202 closed by remote host. Connection to 192.168.0.202 closed. $
Maybe I'm doing something wrong here. I first noticed this running /usr/bin/screen, and because that wipes the terminal when it starts it's a bit difficult to copy & paste the output to document it. ;) The weird thing is that screen seems to *intermittently* give this "-sh: screen: not found" error - it seems like when my Freerunner is first powered up it works fine (typing only screen or screen -Rd), then if I log out and connect again after a day or so, I have to use the full path to screen. This behaviour with shutdown seems consistent, however.