From 99c062309ffc87ec17cbddab08aed2daa8d6d069 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Mon, 10 Jan 2022 22:55:49 -0500 Subject: [PATCH] Emit notes (#858) * Conda/Docker install notes * Clarify wording for #827 --- docs/src/new-in-miller-6.md | 4 ++++ docs/src/new-in-miller-6.md.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/src/new-in-miller-6.md b/docs/src/new-in-miller-6.md index 5883d83db..f2bbc5991 100644 --- a/docs/src/new-in-miller-6.md +++ b/docs/src/new-in-miller-6.md @@ -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: +
 mlr5 -n put 'end {@input={"a":1}; emit @input["a"]}'
 
@@ -328,6 +330,8 @@ Variables must be non-indexed on `emit`. To emit an indexed variable now require input=1 +This works in Miller 6 (and worked in Miller 5 as well) and is supported: +
 mlr -n put 'end {@input={"a":1}; emit1 {"input":@input["a"]}}'
 
diff --git a/docs/src/new-in-miller-6.md.in b/docs/src/new-in-miller-6.md.in index 6bee8326e..09af69920 100644 --- a/docs/src/new-in-miller-6.md.in +++ b/docs/src/new-in-miller-6.md.in @@ -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