$NetBSD$

--- kpsewhere.orig	2006-01-17 13:41:51.000000000 -0800
+++ kpsewhere
@@ -55,9 +55,9 @@ esac
 IFS=':'
 for file
 do
-    for path in `kpsewhich --expand-path='$TEXMF'`
+    for path in `@KPSEWHICH@ --expand-path='$TEXMF'`
     do
-        eval TEXMF=\$path kpsewhich $options \"\$file\"
+        eval TEXMF=\$path @KPSEWHICH@ $options \"\$file\"
     done
 done
 exit 0
