LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 772|回复: 1

似乎shell脚本中不支持alias的命令

[复制链接]
发表于 2005-8-25 22:50:05 | 显示全部楼层 |阅读模式
学习shell脚本编程的时候,发现 ll  不能用,ls -l  才可以。
看来要尽量避免含糊不准确的保证程序的正确性
发表于 2005-8-26 00:11:03 | 显示全部楼层
Post by mantou
学习shell脚本编程的时候,发现 ll  不能用,ls -l  才可以。
看来要尽量避免含糊不准确的保证程序的正确性

Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt (see the description of shopt under SHELL BUILTIN COMMANDS below). 从manpage上截取,不过就算设置了这个开关,也没有用。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表