def link

ezx@1.11.0.0 · src/share/spin.bend:11

import ezx@1.11.0.0/src/share/spin.bend as Spin
import Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/share/say.bend as Say

11# one fd of this process, as a path. A failure is not a terminal.
12def link(+fd: String) -> IO(String):
13  do IO<String>:
14    +out : String <- R.exec(["sh", "-c", Say.probe(), "sh", fd])
15    return String.trim(R.text(out))

Uses (9)

Used by (1)