From 3d71b052bd2247194fb7d7e99ba0b7ca649cf4ab Mon Sep 17 00:00:00 2001 From: lread Date: Sun, 5 Apr 2026 18:08:20 -0400 Subject: [PATCH] which: no need to specify ns for local fn calls Closes #251 --- src/babashka/fs.cljc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/babashka/fs.cljc b/src/babashka/fs.cljc index 9f0c9f4..c711cb6 100644 --- a/src/babashka/fs.cljc +++ b/src/babashka/fs.cljc @@ -1100,7 +1100,7 @@ (into [nil] exts) exts)) [nil]) - paths (or (:paths opts) (babashka.fs/exec-paths)) + paths (or (:paths opts) (exec-paths)) ;; if program is exactly a file name, then search all the path entries ;; otherwise, only search relative to current directory (absolute paths will throw) candidate-paths (if (filename-only? program) @@ -1115,9 +1115,9 @@ (if (seq exts) (let [ext (first exts) program (str program (when ext (str "." ext))) - f (if (babashka.fs/relative? program) - (babashka.fs/path p program) - (babashka.fs/path program))] + f (if (relative? program) + (path p program) + (path program))] (if (and (executable? f) (not (directory? f))) (recur (rest exts) (conj candidates f))