~subsetpark/bagatto

e1c958e9c57e6286a33000e62c3cea9d1a3ae43b — Zach Smith 3 months ago 7827865
Pass :w to /dev/null open; hopefully improve compatibility
1 files changed, 1 insertions(+), 1 deletions(-)

M src/env.janet
M src/env.janet => src/env.janet +1 -1
@@ 20,7 20,7 @@

(defn- on-path?
  [prog]
  (let [f (file/open "/dev/null")]
  (let [f (file/open "/dev/null" :w)]
    (case (os/execute ["which" prog] :p {:out f :err f})
      0 true
      false)))