local alias not respected

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

 



On Friday 25 December 2009 03:38:16 Armelius Cameron wrote:
> 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 ?
> 
I have a root profile in konsole.  I use that for updates, and occasionally 
for other maintenance jobs.  Nothing has changed in the profile.  The command 
for the profile is '/bin/su -' which produces the request for the root 
password..  I can run the command 'yum update --skip-broken' by hand.

> 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.
> 
You've lost me.  Surely to do updates I *do* want to be root, in root's 
environment?

I've defined the alias in root's .bashrc, so now it works, but I'm still 
puzzled as to why it worked before the upgrade, without that.

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/20091225/87487bc0/attachment.bin 


[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