krebs shell: add cat
This commit is contained in:
parent
015720ef89
commit
f6997378c9
@ -12,4 +12,11 @@ rec {
|
|||||||
if isSafeChar c then c
|
if isSafeChar c then c
|
||||||
else if c == "\n" then "'\n'"
|
else if c == "\n" then "'\n'"
|
||||||
else "\\${c}");
|
else "\\${c}");
|
||||||
|
|
||||||
|
#
|
||||||
|
# shell script generators
|
||||||
|
#
|
||||||
|
|
||||||
|
# example: "${cat (toJSON { foo = "bar"; })} | jq -r .foo"
|
||||||
|
cat = s: "printf '%s' ${escape s}";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user