parent
b4900c408e
commit
f65245236f
|
@ -84,7 +84,7 @@ Scope:
|
||||||
- In Bash scripts, subshells (written with parentheses) are convenient ways to group commands. A common example is to temporarily move to a different working directory, e.g.
|
- In Bash scripts, subshells (written with parentheses) are convenient ways to group commands. A common example is to temporarily move to a different working directory, e.g.
|
||||||
```bash
|
```bash
|
||||||
# do something in current dir
|
# do something in current dir
|
||||||
(cd /some/other/dir; other-command)
|
(cd /some/other/dir && other-command)
|
||||||
# continue in original dir
|
# continue in original dir
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue