再补充一个问题,如果系统中的 ll 不是一个alias,而是一个function,那这个方法就无效了,这个又是什么道理?有什么办法能让sudo后面的 function 一起生效?作者: ttt3278 时间: 2016-05-08 09:42
不好意思,今天又翻了一遍bash的man手册,关于alias有这一句话:
If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion.