def line

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

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

44# the line that runs the same command at the root: a shell that changes to the
45# root's directory and hands every word on as it was, with no word read by the
46# shell, which takes them as its positional parameters
47def line(+dir: String, +pwd: String, +prog: String, words: List<&2, String>) -> List<&2, String>:
48  List.append(&2, String,
49    ["sh", "-c", "cd -- \"$1\" && shift && exec \"$@\"", "sh", dir, program(pwd, prog)], words)

Uses (4)

Used by (1)