当我使用“."执行unix shell脚本时会发生什么?命令? [英] What happens when I execute a unix shell script using a '.' command?
本文介绍了当我使用“."执行unix shell脚本时会发生什么?命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,当我说时..bashrc
在我的Linux命令提示符下,是否有一个对应的二进制文件/脚本代替了第一个点而被执行?如果点本身是命令,那么它的位置在哪里?
For example, when I say . .bashrc
on my Linux command prompt, is there a corresponding binary/script that gets executed in place of the first dot? If the dot itself is a command, where is its location?
推荐答案
.
运算符是内置 source
Bash的简写(如下面的John Kugelman所指出).键入
The .
operator is shorthand for the source
Bash builtin (as pointed out by John Kugelman below). Typing
help .
或
help source
Bash提示符下的
将为您提供一些信息.有关 source
的工作方式的更多信息,请参见 http://www.ss64.com/bash/period.html .
at the Bash prompt will give you some information. For more on how source
works, see http://www.ss64.com/bash/period.html.
这篇关于当我使用“."执行unix shell脚本时会发生什么?命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文