def program

ezx@1.11.0.0 · src/ws/hop.bend:38

import ezx@1.11.0.0/src/ws/hop.bend as Hop
import Base
import ezx@1.11.0.0/src/pkg/path.bend as P

38# the program as it was started, found again from another directory: a path
39# with a `/` in it taken from where ez was started, and a bare name looked up
40# on PATH as it was
41def program(+pwd: String, +prog: String) -> String:
42  Bool.pick(String, String.contains(prog, "/"), P.anchor(pwd, prog), prog)

Uses (4)

Used by (2)