execline-state/init-state
2022-08-05 21:19:57 +02:00

16 lines
271 B
Text
Executable file

#!/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
$@