added tags/depend labels
[unix-history] / usr / src / old / which / which.csh
index 445891a..bea7767 100644 (file)
@@ -4,12 +4,14 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)which.csh   5.1 (Berkeley) %G%
+#      @(#)which.csh   5.2 (Berkeley) %G%
 #
 #      which : tells you which program you get
 #
 set prompt = "% "
 #
 #      which : tells you which program you get
 #
 set prompt = "% "
-source ~/.cshrc
+if ( -f ~/.cshrc) then
+       source ~/.cshrc
+endif
 set noglob
 foreach arg ( $argv )
     set alius = `alias $arg`
 set noglob
 foreach arg ( $argv )
     set alius = `alias $arg`