def link
import ezx@1.11.0.0/src/share/spin.bend as Spinimport 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))