快好知 kuaihz


subshell造句
(1) In particular, this repulsion means that orbitals in different sub-shells no longer have the same energy. (2) The parenthesized series of commands is called a subshell. (3) The parentheses effectively execute the statements in a subshell. (4) Because the subshell has so many uses, you might prefer to use it always instead of a combination or the back tick operators. (5) The command in parentheses is a subshell: Commands in the subshell don't affect the environment of the current shell. (6) Hence a full subshell has zero angular momentum and is spherically symmetric. (7) While it's common to run a subshell to pipe aggregated output to a single command, you can also use a subshell to expand a command in place, just like back ticks. (8) Whether to use a combination or a subshell depends on your intentions—although the subshell is much more powerful, as described next. (9) Changes made in the subshell -- for example, changing directory -- do not affect your command line, but it does affect the environment of the subshell. (10) Because the subshell is followed by a pipe, all the output of the subshell is sent to the next command in the pipeline. (11) By setting errexit, the subshell immediately terminates when the first command stops. (12) The use of a subshell is preferable in cases when you are redefining environment variables in your list of commands and you do not want those definitions to apply to your current shell. (13) Nevertheless, some drift is likely to occur because it does take a finite amount of time to launch each subshell for the background processing. (14) Listing 9 shows the same idea executed using a subshell. (15) The remote archive is opened on the remote machine, and the byte stream from cat is sent to a subshell that first changes directory, and then it extracts the archive. (16) The use of the brackets ensures the commands are grouped and executed in a subshell. (17) In Listing 9, for example, if the first rsync failed, then the subshell would just continue and run the next command. (18) 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. (19) The series of commands collected in parentheses runs in a subshell and does not affect the state of the current shell. (20) Finally, the back quotes both interpret the variable and run the intermediate result as a subshell.