In Bash, there appear to be several variables which hold special, consistently-meaning values.
(在Bash中,似乎有几个变量具有特殊的,一致意义的值。)
For instance, (例如,)
./myprogram &; echo $!
will return the PID of the process which backgrounded myprogram
.
(将返回后面的myprogram
进程的PID。)
I know of others, such as $?
(我知道别人,比如$?
)
which I think is the current TTY. (我认为是目前的TTY。)
Are there others? (还有其他人吗?)
ask by Z Douglas translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…