mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2094 (markdown)
@@ -26,3 +26,8 @@ You can ignore this error if:
|
||||
|
||||
* The file is a device or named pipe. These files don't truncate in the same way.
|
||||
* The command mentions the filename but doesn't read/write it, such as `echo log.txt > log.txt`.
|
||||
|
||||
### Additional Resources
|
||||
|
||||
* [StackOverflow: bash redirect input from file back into same file](https://stackoverflow.com/questions/6696842/bash-redirect-input-from-file-back-into-same-file)
|
||||
* [BashPitfalls: `cat file | sed s/foo/bar/ > file`](https://mywiki.wooledge.org/BashPitfalls#pf13)
|
Reference in New Issue
Block a user