From d55e329018e24d2e8506382b752b10b8ada20d73 Mon Sep 17 00:00:00 2001 From: Henry Gebhardt Date: Sun, 2 Jan 2011 11:49:51 -0800 Subject: [PATCH] redo-sh.do: hide warning output from 'which' in some shells. --- redo-sh.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redo-sh.do b/redo-sh.do index 189a43a..fb4451b 100644 --- a/redo-sh.do +++ b/redo-sh.do @@ -9,7 +9,7 @@ WARN= for sh in dash sh ash ksh pdksh bash zsh busybox; do printf "Testing %s... " "$sh" - FOUND=`which $sh` || { echo "missing"; continue; } + FOUND=`which $sh 2>/dev/null` || { echo "missing"; continue; } # It's important for the file to actually be named 'sh'. Some # shells (like bash and zsh) only go into POSIX-compatible mode if