shell alias in bash

R. Welz r_welz at gmx.de
Sat May 22 17:46:57 PDT 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:
alias topold='top'
alias top='top -u'
and restarted Terminal.app

But topold still gives a cpu sorted output AND a call to alias:

My-Computer:~ user$ alias
alias psseti='ps aux | grep seti'
alias top='top -u'
alias topold='top'

shouldn't that output be in the other order? What can I do?

Can someone help, please?

Greetings,
Robert



More information about the X-Unix mailing list