Generalising the empty array fix to map

This commit is contained in:
Mike Farah
2026-08-03 13:31:47 +10:00
parent b74aefd55f
commit 7862131c9c
5 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ country: Australia
```
then
```bash
yq --security-enable-system-operator '.country = system("/bin/echo"; "test")' sample.yml
yq --security-enable-system-operator '.country = system("/usr/bin/echo"; "test")' sample.yml
```
will output
```yaml
@@ -67,7 +67,7 @@ a: hello
```
then
```bash
yq --security-enable-system-operator '.a = system("/bin/echo")' sample.yml
yq --security-enable-system-operator '.a = system("/usr/bin/echo")' sample.yml
```
will output
```yaml