execline-state/save-state

16 lines
217 B
Text
Raw Normal View History

2022-08-05 19:19:57 +00:00
#!/bin/execlineb
importas -ui name 1
importas -ui value 2
importas -i rdfd ELSTATE_${name}
backtick -E wrfd { s6-expr "$rdfd" + 1 }
foreground {
fdmove -c 1 ${wrfd}
echo "$value"
}
shift -n 2
elgetpositionals
$@