From 2ae165e192f21dbae285a514d7b37e0ec0c04468 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 27 Feb 2011 18:58:04 +0100 Subject: [PATCH] Make sure that "type manpath" emits no error messages --- sys/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/profile b/sys/profile index f1ffada..0ce21cf 100644 --- a/sys/profile +++ b/sys/profile @@ -50,7 +50,7 @@ done [ -d ~/sbin ] && PATH=~/sbin:"${PATH}" # Setup MANPATH, if manpath(1) isn't available -if [ ! "$(type manpath)" ]; then +if [ ! "$(type manpath 2>/dev/null)" ]; then [ -z "$MANPATH" ] \ && MANPATH="/usr/local/share/man:/usr/share/man:/usr/man" path="" -- 2.39.2