execline-state/init-state

17 lines
271 B
Text
Raw Permalink Normal View History

2022-08-05 19:19:57 +00:00
#!/bin/execlineb
backtick -E top_fd {
pipeline { s6-ls /proc/self/fd }
s6-tail -n 1
}
backtick -E rdfd { s6-expr ${top_fd} + 1 }
backtick -E wrfd { s6-expr ${top_fd} + 2 }
piperw $rdfd $wrfd
importas -ui name 1
shift
export ELSTATE_${name} $rdfd
elgetpositionals
$@