免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
楼主: vampire's
打印 上一主题 下一主题

请问:cp不提示,直接覆盖参数是啥? [复制链接]

论坛徽章:
0
41 [报告]
发表于 2011-07-07 10:48 |只看该作者
高人啊!屏蔽alias !学习!

1, unalise
2,\cmd 就是在 shell 裡所輸入的 cmd 不會替換為 alias。

论坛徽章:
0
42 [报告]
发表于 2011-07-07 11:56 |只看该作者
回复 11# 局内人


    From "Bash Reference Manual":

6.6 Aliases
Aliases allow a string to be substituted for a word when it is used as the first word of a simple command. The shell maintains a list of aliases that may be set and unset with the alias and unalias builtin commands.

The first word of each simple command, if unquoted, is checked to see if it has an alias. If so, that word is replaced by the text of the alias. The characters ‘/’, ‘$’, ‘`’, ‘=’ and any of the shell metacharacters or quoting characters listed above may not appear in an alias name. The replacement text may contain any valid shell input, including shell metacharacters. The first word of the replacement text is tested for aliases, but a word that is identical to an alias being expanded is not expanded a second time. This means that one may alias ls to "ls -F", for instance, and Bash does not try to recursively expand the replacement text. If the last character of the alias value is a space or tab character, then the next command word following the alias is also checked for alias expansion.

........

论坛徽章:
0
43 [报告]
发表于 2012-08-13 13:21 |只看该作者
回复 8# 網中人


8楼强呀,  正解。


   

论坛徽章:
0
44 [报告]
发表于 2013-02-19 15:42 |只看该作者
网大大太强悍了

论坛徽章:
2
技术图书徽章
日期:2013-10-08 08:52:55水瓶座
日期:2013-11-22 12:16:09
45 [报告]
发表于 2013-02-19 22:46 |只看该作者
   学习了。 膜拜高手!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP