|

楼主 |
发表于 2005-9-29 08:22:04
|
显示全部楼层
我的mplayer是alias mplayer='mplayer -ontop -vo xv'过的
请仔细看看下面这些话:
如果有空格,那么会对alias过的变量进行展开
发信人: wyk (freefantasy), 信区: Linux
标 题: Re: alias psl="ps axu | grep "怪事
发信站: 瀚海星云 (2005年09月28日19:26:16 星期三), 站内信件
在Learning the bash Shell, Second Edition上有这么一段话:
An obscure feature of bash's alias facility—one not present in the
analogous C shell feature—provides a way around this problem. If the value
of an alias (the right side of the equal sign) ends in a blank, then bash tr
ies to do alias substitution on the next word on the command line. To make t
he value of an alias end in a blank, you need to surround it with quotes. |
|