local alias not respected

Anne Wilson cannewilson at googlemail.com
Thu Dec 24 09:25:46 UTC 2009


On Wednesday 23 December 2009 20:57:50 Patrick Boutilier wrote:
> >> I defined:
> >>
> >> alias yu="sudo yum --skip-broken update"
> >>
> >> the only differences being that I put the flag first, then the argument,
> >>   and I used quotation marks, not apostrophes. I know there is a
> >> difference in bash between ' and ", but mine really DOES work (on both
> >> of my computers, for both me and root on each).
> >>
> >> Maybe try?
> >
> > I tried this, but 'which yus' still returns the old one.  Do I need
> > 'newaliases' or something?
> 
> Nope, newaliases is for sendmail. :-)
> 
Thought so, that's why I said 'or something' :-)

> Does it still not work if you run the alias command from a shell prompt 
> and then try yus ?
> 
> 
> alias yus='yum update --skip-broken'
> 
It does.  A clue then - it seems to be a matter of paths.  The command is in 
my user bashrc, and it always worked from a root console before.  What do you 
think?

Anne
-- 
KDE Community Working Group
New to KDE Software? - get help from http://userbase.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/kde/attachments/20091224/64f0b166/attachment.bin 


More information about the kde mailing list