[X-Unix] shell alias in bash

James Bucanek subscriber at gloaming.com
Sat May 22 21:50:54 PDT 2004


R. Welz wrote on Sunday, May 23, 2004:

>Hello.
>I am no shell expert but I need to have some aliasis:
>
>In .bash_profile I had defined two aliasis (?)
>alias top='top -u'
>alias topold='top'
>
>but a call to topold showed a top -u instead (sorted by %cpu).
>
>So I changed the order:

Aliases are evaluated when invoked.  The order in which you declare them will make no difference.

alias top='top -u'
alias topold='/usr/bin/top'

______________________________________________________
James Bucanek       <mailto:privatereply at gloaming.com>



More information about the X-Unix mailing list