summaryrefslogtreecommitdiff
path: root/plugins/gitignore
diff options
context:
space:
mode:
authorHenrik Holm <henrik@henrikholm.com>2014-03-29 10:14:37 -0400
committerHenrik Holm <henrik@henrikholm.com>2014-03-30 10:34:13 -0400
commitf46d06dae19f691e6666d4836766e9eb69d2e51b (patch)
tree99aa51264bbc9d29d355ddf61a5eb049f9804758 /plugins/gitignore
parent70dfb91b982b91cd2bd052124e8b65b774f66db1 (diff)
downloadzsh-f46d06dae19f691e6666d4836766e9eb69d2e51b.tar.gz
zsh-f46d06dae19f691e6666d4836766e9eb69d2e51b.tar.bz2
zsh-f46d06dae19f691e6666d4836766e9eb69d2e51b.zip
Correct redirection of output from 'hash'
The intention of the redirection to /dev/null is to hide the output 'hash: no such command: git' since we rely on the exit status. However, the output goes to stderr, so it's stderr that needs to be redirected. For completeness, we redirect both stderr and stdout using '2>&1'. Example: [~]$ hash git > /dev/null [~]$ PATH='' [~]$ hash git > /dev/null hash: no such command: git [~]$ hash git > /dev/null 2>&1 [~]$
Diffstat (limited to 'plugins/gitignore')
0 files changed, 0 insertions, 0 deletions