>From: Julian Howard Stacey <stacey@guug.de>
authorRod Grimes <rgrimes@FreeBSD.org>
Sat, 22 Jan 1994 07:42:30 +0000 (07:42 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Sat, 22 Jan 1994 07:42:30 +0000 (07:42 +0000)
Subject: patch to use stderr in usr.bin/which.csh
Date: Wed, 19 Jan 1994 16:25:21 +0100
This appended patch to usr.bin/which.csh will send error output
to stderr (currently it goes to stdout).
( I fixed it to go to stderr so I can use it in my /usr/ports/Makefile
  constructs such as
  DPWISH_BINARY != which dpwish
  .if exists(zircon) & exists(zircon/Makefile) & \
   exists(DPWISH_BINARY)
   SUBDIR += zircon # depends on tcl, tk & dpwish
   .endif
)

usr.bin/which/which.csh

index 5295deb..9c74c31 100644 (file)
@@ -57,7 +57,7 @@ foreach arg ( $argv )
        if ( -e $arg ) then
            echo $arg
        else
        if ( -e $arg ) then
            echo $arg
        else
-           echo $arg not found
+           echo "$arg not found" > /dev/stderr
        endif
        continue
     else
        endif
        continue
     else
@@ -70,6 +70,6 @@ foreach arg ( $argv )
        end
     endif
     if ( ! $?found ) then
        end
     endif
     if ( ! $?found ) then
-       echo no $arg in $path
+       echo "no $arg in $path" > /dev/stderr
     endif
 end
     endif
 end