From aed69a5b0dbacbddc1018b173f8420e40389004f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 22 Jan 2002 03:48:16 +0000 Subject: [PATCH] * cygmagic: Suppress error output when figuring out if sum takes an option. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygmagic | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 654ee8859..104523278 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-01-21 Christopher Faylor + + * cygmagic: Suppress error output when figuring out if sum takes an + option. + 2002-01-21 Christopher Faylor * cygmagic: Attempt to figure out if sum takes an option. diff --git a/winsup/cygwin/cygmagic b/winsup/cygwin/cygmagic index 16053624d..387593878 100755 --- a/winsup/cygwin/cygmagic +++ b/winsup/cygwin/cygmagic @@ -17,7 +17,7 @@ cat < $file_magic /* autogenerated - do not edit */ #include "$file" EOF -if sum -r /dev/null; then +if sum -r /dev/null >/dev/null 2>&1; then sumit(){ sum -r $*; } else sumit(){ sum $*; }