src/share/pass.bend relies on unsafe/foreign
raw source on the hub · import 0x74799d3f846634a3d7461d4336d7c9d4/src/share/pass.bend as Pass
share/pass: a program run on ez's own stdin, stdout and stderr, as cargo run
runs one. Every other program ez starts goes through snap's exec, which
hands the child /dev/null for stdin, holds what it prints until it exits,
and answers both at once; that is what a command that reads the answer
wants. ez run and ez tool run read nothing back: the program talks to
the person, and ez only waits for it and exits with its status (S.code
and TP.code, EZ-OUT-1).
2 imports
import Base import 0xabe575924687afad4cee1a2c1194d639/main.bend as R
Definitions
def run source · line 19 · raw
@argv:List<&2, String> -> IO(U32)
a program run with its arguments, on ez's own stdio
Effects (foreign code)
effect ezpass.run source · line 14 · raw
@cmd:String -> IO(U32)
the program and its arguments, newline separated, run with no shell between and nothing captured. The answer is the status it exited with: 128 plus the signal for one a signal ended, and 127 for one that could not be started.
foreign: src/share/pass.c, src/share/pass.js