subshell

subshell

美 ['sʌbˌʃel]  英 ['sʌbʃel]

  • n.【核】支壳层
  • 网络子外壳;亚壳层;次层

词形变化

复数:subshells  

英汉解释

n.
1.
【核】支壳层

英英解释

n.

例句

The series of commands collected in parentheses runs in a subshell and does not affect the state of the current shell.

圆括号系列命令一个Shell运行,并且不会当前Shell状态产生影响

Here, the subshell command du -sh work | cut -f1 yields the total size of the work directory in a format compatible with pv.

这里shell命令du-shwork|cut-f1pv兼容格式生成工作目录大小

Because the subshell is followed by a pipe, all the output of the subshell is sent to the next command in the pipeline.

因为subshell后面跟着管道所以subshell所有输出通过管道传输下一个命令

The parenthesized series of commands is called a subshell.

命令圆括号部分称为subshell

Finally, the back quotes both interpret the variable and run the intermediate result as a subshell.

最后解释变量作为shell运行中间结果

You can generally do this by running a list of commands in a subshell or by running a list of commands in the current shell.

一般可以通过某个Subshell运行一个命令列表通过当前Shell运行一个命令列表实现目的

Better yet, a subshell can contain another subshell, so expansions can be nested, too.

然而价值Shell可以包含另一个Shell所以可以进行嵌套扩展

The parentheses effectively execute the statements in a subshell.

圆括号语句一个shell执行

The use of the brackets ensures the commands are grouped and executed in a subshell.

使用括号保证命令一个,并且shell执行

Finally, we'll add an arbitrary 30-second sleep to ensure the command sequence finishes after the two subshells do.

最后我们添加任意30休眠时间确保两个subshell完成之后命令序列完成

By setting errexit, the subshell immediately terminates when the first command stops.

通过设置errexit外壳直接第一个命令停止终止

Because the subshell has so many uses, you might prefer to use it always instead of a combination or the back tick operators.

因为Shell许多用途所以组合或者操作符相比可能更喜欢使用

Listing 9 shows the same idea executed using a subshell.

清单9演示如何使用shell执行相同代码

In Listing 9, for example, if the first rsync failed, then the subshell would just continue and run the next command.

例如清单9如果第一个rsync失败外壳继续运行下一个命令

Effects of relaxation induced by excitation (or ionization) of inner subshell electrons on the wave functions and transition probabilities

电子激发电离诱发电子函数弛豫及其辐射跃迁概率影响

Run a list of commands in a subshell

Subshell运行命令列表

热门查询