[nhc-bugs] hmake stdout/stderr confusion

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Wed, 26 Sep 2001 11:02:03 +0100


> [I hope, this is the right place to report hmake problems.]

Yes.

> When hmake emits the message 
> 
>   Stop - hmake dependency error.
> 
> it does so to stdout.  I think, it should go to stderr, as
> the current behaviour in combination with output redirection
> can be surprising.

Good point.  Patch below.
Regards,
    Malcolm


Index: script/hmake.inst
===================================================================
RCS file: /usr/src/master/nhc/script/hmake.inst,v
retrieving revision 1.19
diff -u -r1.19 hmake.inst
--- script/hmake.inst	2001/06/15 13:21:24	1.19
+++ script/hmake.inst	2001/09/26 09:42:34
@@ -234,6 +234,6 @@
      rm $TMP/hmake$$
      exit $CODE ;;
   *) rm $TMP/hmake$$
-     echo "Stop - hmake dependency error."
+     echo >&2 "Stop - hmake dependency error."
      exit $CODE ;;
 esac