Hop.line: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ws/hop.bend as Hop Lines 44-49 of ezx@1.11.0.0/src/ws/hop.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ws/hop.bend&start_line=44&end_line=49 import Base # the line that runs the same command at the root: a shell that changes to the # root's directory and hands every word on as it was, with no word read by the # shell, which takes them as its positional parameters def line(+dir: String, +pwd: String, +prog: String, words: List<&2, String>) -> List<&2, String>: List.append(&2, String, ["sh", "-c", "cd -- \"$1\" && shift && exec \"$@\"", "sh", dir, program(pwd, prog)], words) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/hop.bend&name=program