mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2069 (markdown)
@@ -14,7 +14,9 @@ Redirections are handled in order.
|
||||
|
||||
The problematic code means "Point stderr to where stdout is currently pointing (the terminal). Then point stdout to /dev/null".
|
||||
|
||||
The correct code means "Point stdout to /dev/null. Then point stderr to where stdout is currently pointing (/dev/null).".
|
||||
The correct code means "Point stdout to /dev/null. Then point stderr to where stdout is currently pointing (/dev/null)".
|
||||
|
||||
In other words, the problematic code hides stdout and shows stderr. The correct code hides both stderr and stdout, which is usually the intention.
|
||||
|
||||
### Contraindications
|
||||
|
||||
|
Reference in New Issue
Block a user