execline-json/json

18 lines
280 B
Text
Raw Permalink Normal View History

2022-08-05 20:47:29 +00:00
#!/bin/execlineb
multisubstitute {
importas -ui name 1
importas -ui input 2
}
backtick defines {
backtick -E cleaned { pipeline { s6-echo "$input" } tr -d "\\n" }
json-defines "$name" "$cleaned"
}
importas -uisd "\n" defines defines
shift -n 2
elgetpositionals
$defines
$@