Emit notes (#858)

* Conda/Docker install notes

* Clarify wording for #827
This commit is contained in:
John Kerl 2022-01-10 22:55:49 -05:00 committed by GitHub
parent eb69d232c1
commit 99c062309f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -321,6 +321,8 @@ IFS and IPS can be regular expressions now. Please see the section on [multi-cha
Variables must be non-indexed on `emit`. To emit an indexed variable now requires the new `emit1` keyword.
This worked in Miller 5 but is no longer supported in Miller 6:
<pre class="pre-highlight-in-pair">
<b>mlr5 -n put 'end {@input={"a":1}; emit @input["a"]}'</b>
</pre>
@ -328,6 +330,8 @@ Variables must be non-indexed on `emit`. To emit an indexed variable now require
input=1
</pre>
This works in Miller 6 (and worked in Miller 5 as well) and is supported:
<pre class="pre-highlight-in-pair">
<b>mlr -n put 'end {@input={"a":1}; emit1 {"input":@input["a"]}}'</b>
</pre>

View file

@ -275,11 +275,15 @@ IFS and IPS can be regular expressions now. Please see the section on [multi-cha
Variables must be non-indexed on `emit`. To emit an indexed variable now requires the new `emit1` keyword.
This worked in Miller 5 but is no longer supported in Miller 6:
GENMD-CARDIFY-HIGHLIGHT-ONE
mlr5 -n put 'end {@input={"a":1}; emit @input["a"]}'
input=1
GENMD-EOF
This works in Miller 6 (and worked in Miller 5 as well) and is supported:
GENMD-RUN-COMMAND
mlr -n put 'end {@input={"a":1}; emit1 {"input":@input["a"]}}'
GENMD-EOF