local alias not respected

Patrick Boutilier boutilpj at ednet.ns.ca
Wed Dec 23 20:57:50 UTC 2009


On 12/23/2009 04:04 PM, Anne Wilson wrote:
> On Wednesday 23 December 2009 03:05:05 Petrus de Calguarium wrote:
>> Anne Wilson wrote:
>>> On Tuesday 22 December 2009 17:51:27 Patrick Boutilier wrote:
>>>> On 12/22/2009 01:46 PM, Anne Wilson wrote:
>>>>> On Tuesday 22 December 2009 17:30:44 Patrick Boutilier wrote:
>>>>>> On 12/22/2009 01:13 PM, Anne Wilson wrote:
>>>>>>> In ~/.bashrc I have the following alias:
>>>>>>>
>>>>>>> alias yus='yum update --skip-broken'
>>>>>>>
>>>>>>> This no longer works since I installed F12.  Any idea why?
>>>>>>
>>>>>> What is the result of running "alias" from the command line?
>>>>>
>>>>> alias l.='ls -d .* --color=auto'
>>>>> alias ll='ls -l --color=auto'
>>>>> alias ls='ls --color=auto'
>>>>> alias vi='vim'
>>>>> alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot
>>>>> --show- tilde'
>>>>> alias yus='yum update --skip-broken'
>>>>
>>>> alias has been added. What doesn't work? :-)
>>>
>>> bash doesn't recognise the command.
>>>
>>> -bash: yus: command not found
>>>
>>> Anne
>>
>> 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. :-)

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'


>
> Anne
>
>
>
> _______________________________________________
> fedora-kde mailing list
> fedora-kde at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/fedora-kde
> New to KDE4? - get help from http://userbase.kde.org




More information about the kde mailing list