哪些字符允许在bash别名 [英] Which characters are allowed in a bash alias
本文介绍了哪些字符允许在bash别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近添加
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
我bash_aliases文件。玩这个的时候,我注意到,虽然混叠 ..
是允许的,混叠。
不是。在bash别名允许其他什么标点符号?
to my bash_aliases file. Playing around with this, I noticed that while aliasing ..
was allowed, aliasing .
was not. What other punctuation characters are allowed in bash aliases?
推荐答案
https://www.gnu.org/software/bash/manual/html_node/Aliases.html
我不会名称的别名。在Linux操作系统。是当前导演一个特殊的名字和..是的父目录。可能会有一些模糊的过程,可以用别名。对于CD被搞砸了。
https://www.gnu.org/software/bash/manual/html_node/Aliases.html I wouldn't name an alias .. in linux . is a special name for the current director and .. is for the parent directory. there could be some obscure process that could be screwed up by aliasing .. for cd
这篇关于哪些字符允许在bash别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文