local alias not respected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 24 December 2009 04:25:46 Anne Wilson wrote:
> 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?

So how did you get to the root console ? 

If you get a user console, then do "su" to get the root console, then it 
should work. If you do "su -", I don't think it'd work as "su -" change the 
environment to use root's.

AC



[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux