From 1659bbe4298652972f3b8e517f60e7d4e698bbf0 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 21 Jul 2012 07:21:11 -0500 Subject: suppress distracting message in ./g on some platform we use perl to determine the absolute path of argument thought to be fiels. but sometime they are not file at all and that call 'fail'. The code is meant to deal with such case, but on some platform that produce a scary message on stderr in the middle of the build log. This hide these messages. Change-Id: I52d43e0b26847ab091d76fd446a05c4d84836a77 --- g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g') diff --git a/g b/g index 7ec3bdae745b..902f3ac18d05 100755 --- a/g +++ b/g @@ -233,7 +233,7 @@ while shift ; do FILESNUM=$(($FILESNUM+1)) else # make the paths absolute - FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM") + FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM" 2>/dev/null) if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then # it is probably not a file, but a tag name, or something FILES[$FILESNUM]="$PARAM" -- cgit v1.2.3