cleanup
This commit is contained in:
parent
22d69241d1
commit
764ebd09ab
|
@ -1031,9 +1031,9 @@ echo -n >file
|
|||
printf '' >file
|
||||
```
|
||||
|
||||
## Use `exec` to change the shell's file descriptors.
|
||||
## Use `exec` to change the shell's file descriptors
|
||||
|
||||
Calling `exec` with redirection to a file can be used for logging all output.
|
||||
Use `exec` to redirection any output to the given file descriptors. In the example, stdout and stderr are both being redirected such that output of any commands afterwards will go to that file.
|
||||
|
||||
**Example Function:**
|
||||
|
||||
|
|
|
@ -164,9 +164,9 @@ echo -n >file
|
|||
printf '' >file
|
||||
```
|
||||
|
||||
## Use `exec` to change the shell's file descriptors.
|
||||
## Use `exec` to change the shell's file descriptors
|
||||
|
||||
Calling `exec` with redirection to a file can be used for logging all output.
|
||||
Use `exec` to redirection any output to the given file descriptors. In the example, stdout and stderr are both being redirected such that output of any commands afterwards will go to that file.
|
||||
|
||||
**Example Function:**
|
||||
|
||||
|
|
Loading…
Reference in New Issue