Results 1 to 3 of 3
When in console mode (x-window-system is not loaded),
root@myserver:~#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
However, when I'm in the window manager (fluxbox) and I open a xterm window, my $PATH has a different ...
- 03-09-2006 #1Just Joined!
- Join Date
- Mar 2006
- Posts
- 18
Why is the value of $PATH in console mode different from the $PATH in xterm emulator?
When in console mode (x-window-system is not loaded),
root@myserver:~#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
However, when I'm in the window manager (fluxbox) and I open a xterm window, my $PATH has a different value.
root@myserver:~#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ sbin:/bin:/usr/bin/X11
The difference is the additional space between the slash (/) and sbin. That causes /sbin to be missing from my PATH.
So any attempt to install package will give the error
dpkg: ldconfig not found on PATH
dpkg: start-stop-daemon not found on PATH
What is causing the additional space between the slash (/) and sbin in the PATH only when in xterm emulator?
Any advice would be greatly appreciated.
Thanks.
PS. Happens on both machines I installed x-window-system, fluxbox, xterm.
- 03-09-2006 #2
you can try simply set $PATH variables in xterm as in terminal and see.
- 03-09-2006 #3Just Joined!
- Join Date
- Mar 2006
- Posts
- 18
For testing purpose, I installed rxvt and eterm. rxvt has the same error but eterm displays the correct $PATH value ( no extra space ).
In short, $PATH shows the correct value in eterm, but incorrect in rxvt and xterm on both machines.
Thanks !


Reply With Quote
