Added what I found on the error from stackoverflow

nathandarnell
2014-05-07 17:16:17 -07:00
parent ea328c55d4
commit 1b0b4d5e1c

@@ -1,7 +1,13 @@
# SC2024 sudo doesn't affect redirects. Use ..| sudo tee file # SC2024 sudo doesn't affect redirects. Use ..| sudo tee file
*** ## Problematic Code:
## Problematic code: `sudo ls -hal /root/ > /root/test.out`
`sudo pv $VAR1 > $VAR2` ## Correct Code:
`sudo sh -c 'ls -hal /root/ > /root/test.out'`
## Source
[http://stackoverflow.com/a/82278](http://stackoverflow.com/a/82278)