aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-06 15:05:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-06 15:05:27 +1300
commit70303b8337f01b29b5fed1df42da708002b5bc84 (patch)
tree84a9eefb8cdadb1be6b420fad30cfd5eaf1e6e1e /bash
parentRemove unneeded semicolon from sh "for VAR ; do" (diff)
downloaddotfiles-70303b8337f01b29b5fed1df42da708002b5bc84.tar.gz
dotfiles-70303b8337f01b29b5fed1df42da708002b5bc84.zip
Remove unneeded stdout redirect
With -q, the `shopt` builtin shouldn't print anything to stdout; we only need to block stderr for its not being found or the relevant option not existing.
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index a05526f2..0400e41d 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -6,7 +6,7 @@ esac
# Don't do anything if restricted, not even sourcing the ENV file
# Testing $- for "r" doesn't work
-! shopt -q restricted_shell >/dev/null 2>&1 || return
+! shopt -q restricted_shell 2>/dev/null || return
# Clear away all aliases; we do this here rather than in the $ENV file shared
# between POSIX shells, because ksh relies on aliases to implement certain