def program
import ezx@1.11.0.0/src/ws/hop.bend as Hopimport 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)