[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issues when func name is the same with an alias
From: |
Clark J. Wang |
Subject: |
Re: Issues when func name is the same with an alias |
Date: |
Fri, 6 Aug 2010 09:26:13 +0800 |
On Thu, Aug 5, 2010 at 4:06 PM, Marc Herbert <Marc.Herbert@gmail.com> wrote:
> Le 04/08/2010 15:29, Clark J. Wang a écrit :
> > I do not agree. Aliases are much simpler to use than functions.
>
> Please provide examples.
>
> The following is a part of my aliases. I'll have to write much more code if
I define them all as functions. I don't think functions are better than
aliases here. Any idea?
A='alias | grep "^alias .=" | sed -e "s/^alias //" | LC_ALL=C command grep
"^[a-zA-Z]"'
B='builtin'
C='command'
D='date "+%a %Y-%m-%d %H:%M:%S (%z %Z)"'
E='export'
F='find'
G='git'
H='history'
I='ifconfig'
K='killall'
L='less'
M='LC_ALL=C man'
N='netstat'
O='openssl'
P='popd'
Q='[[ $WINDOW ]] && screen -X at '\''#'\'' stuff $'\''exit\n'\'''
R='route'
S='sudo'
T='touch'
U='uname'
V='echo $BASH_VERSION'
W='watch'
X='screen -X'
Y='yast2'
Z='reset'
a='alias'
b='builtin cd -'
c='clear'
d='dirs -v'
e='echo'
f='file'
g='grep'
h='help'
i='info --vi-keys'
j='jobs'
k='kill'
l='ls -l'
m='make'
n='mount'
p='pushd'
q='exit'
r='fc -s'
s='screen'
t='type'
u='umount'
v='vim'
w='w'
x='xargs'
y='yast'
z='echo "${COLUMNS}x$LINES"'
Re: Issues when func name is the same with an alias, Bernd Eggink, 2010/08/04