#1646: $PATH not correctly honoured by the shell?
---------------------+------------------------------------------------------
Reporter: Strolls | Owner: openmoko-devel
Type: defect | Status: new
Priority: normal | Milestone:
Component: unknown | Version:
Severity: blocker | Keywords:
Blocking: | Blockedby:
---------------------+------------------------------------------------------
Using 2007.2 (default factory image, then `opkg update && opkg upgrade`)
$PATH does not seem to be honoured by the shell.
{{{
root at om-gta02:~# shutdown -fh now
-sh: shutdown: not found
root at om-gta02:~# find / -name shutdown
/usr/lib/opkg/alternatives/shutdown
/sbin/shutdown
root at om-gta02:~# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
root at 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 at 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.
`
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/1646>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac