RickSisler wrote:
joe ([EMAIL PROTECTED]) wrote:
bascule wrote:
[EMAIL PROTECTED] echo $pathhave you checked your path? echo $PATH try the full path to urpmi /usr/sbin/urpmi glabels
Joe, the variable name is declared with Capital letters, so type::
#> echo $PATH
I am working on setting up my path again. Wondering what happened toif the above doesn't work, check your /etc/bashrc ..
it.
did you try what bascule mentions:
try the full path to urpmi #> /usr/sbin/urpmi glabels
I did, and like magic, urpmi worked.
The question I have, is why is /usr/sbin no longer in my $PATH, and/or how should I edit my bashrc so that it is.
Here is what i get from echo $PATH: echo $PATH /usr/lib/distcc/bin:/home/fcrozat/GNUstep/Tools:/usr/GNUstep/Local/Tools:/usr/GNUstep/System/Tools:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/fcrozat/bin
I had a look at /etc/bashrc, it's not really well documented (at least i had trouble following it). Here it is if anyone is interested:
# /etc/bashrc
# System wide functions and aliases # Environment stuff goes in /etc/profile
# by default, we want this to get set. # Even for non-interactive, non-login shells. if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then umask 002 else umask 022 fi
# are we an interactive shell?
if [ "$PS1" ]; then
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;[EMAIL PROTECTED]: ${PWD}\007"'
;;
*)
;;
esac
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[EMAIL PROTECTED] \W]\\$ "
if [ -z "$loginsh" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -x $i ]; then
. $i
fi
done
fi
fi
unset lo
------------------------------------------------------------------------
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________