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