Warn when piping/redirecting to mv/cp/echo/etc (#921)

This commit is contained in:
Vidar Holen 2017-07-03 16:02:58 -07:00
parent a3c6aff0fb
commit 5bd33dbf92
2 changed files with 57 additions and 3 deletions

View file

@ -77,6 +77,14 @@ commonCommands = [
"zcat"
]
nonReadingCommands = [
"alias", "basename", "bg", "cal", "cd", "chgrp", "chmod", "chown",
"cp", "du", "echo", "export", "fg", "fuser", "getconf", "getopt",
"getopts", "ipcrm", "ipcs", "jobs", "kill", "ln", "ls", "locale", "mv",
"nice", "printf", "ps", "pwd", "renice", "rm", "rmdir", "set", "sleep",
"touch", "trap", "ulimit", "unalias", "uname"
]
sampleWords = [
"alpha", "bravo", "charlie", "delta", "echo", "foxtrot",
"golf", "hotel", "india", "juliett", "kilo", "lima", "mike",