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
)
if ( -e $arg ) then
echo $arg
else
if ( -e $arg ) then
echo $arg
else
+ echo "$arg not found" > /dev/stderr
end
endif
if ( ! $?found ) then
end
endif
if ( ! $?found ) then
+ echo "no $arg in $path" > /dev/stderr