From 70303b8337f01b29b5fed1df42da708002b5bc84 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 6 Dec 2018 15:05:27 +1300 Subject: 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. --- bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') 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 -- cgit v1.2.3