|
|
|||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||||||||||
|
10.3 File DescriptorsSome file descriptors shall not be used, since some systems, admittedly arcane, use them for special purpose:
Don't redirect several times the same file descriptor, as you are doomed to failure under Ultrix.
In each case the expected result is of course `fullness' containing `matter' and `void' being empty. Don't try to redirect the standard error of a command substitution: it must be done inside the command substitution: when running `: `cd /zorglub` 2>/dev/null' expect the error message to escape, while `: `cd /zorglub 2>/dev/null`' works properly. It is worth noting that Zsh (but not Ash nor Bash) makes it possible in assignments though: `foo=`cd /zorglub` 2>/dev/null'. Most shells, if not all (including Bash, Zsh, Ash), output traces on stderr, even for sub-shells. This might result in undesired content if you meant to capture the standard-error output of the inner command:
You'll appreciate the various levels of detail... One workaround is to grep out uninteresting lines, hoping not to remove good ones...
|
|
|||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||
|
Marketplace: | |||||||||||||||||||||||||||||||||||||||||
| " Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is nothing like Shakespeare. " | |||||||||||||||||||||||||||||||||||||||||