2020-02-21 10:00:36 +00:00
|
|
|
---
|
2020-11-25 11:31:55 +00:00
|
|
|
name: Bug report - V4
|
2020-02-21 10:00:36 +00:00
|
|
|
about: Create a report to help us improve
|
|
|
|
title: ''
|
2020-11-25 11:33:50 +00:00
|
|
|
labels: bug, v4
|
2020-02-21 10:00:36 +00:00
|
|
|
assignees: ''
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
**Describe the bug**
|
|
|
|
A clear and concise description of what the bug is.
|
|
|
|
|
2020-12-31 02:43:44 +00:00
|
|
|
Note that any how to questions should be posted in the discussion board and not raised as an issue.
|
|
|
|
|
2020-11-25 11:31:55 +00:00
|
|
|
Version of yq: 4.X.X
|
|
|
|
Operating system: mac/linux/windows/....
|
|
|
|
Installed via: docker/binary release/homebrew/snap/...
|
2020-06-15 11:42:26 +00:00
|
|
|
|
2020-02-21 10:00:36 +00:00
|
|
|
**Input Yaml**
|
2020-11-25 11:22:16 +00:00
|
|
|
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
|
2020-02-21 10:00:36 +00:00
|
|
|
data1.yml:
|
|
|
|
```yaml
|
|
|
|
this: should really work
|
|
|
|
```
|
|
|
|
|
|
|
|
data2.yml:
|
|
|
|
```yaml
|
|
|
|
but: it strangely didn't
|
|
|
|
```
|
|
|
|
|
|
|
|
**Command**
|
|
|
|
The command you ran:
|
|
|
|
```
|
2020-11-25 11:31:55 +00:00
|
|
|
yq eval-all 'select(fileIndex==0) | .a.b.c' data1.yml data2.yml
|
2020-02-21 10:00:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
**Actual behavior**
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
cat: meow
|
|
|
|
```
|
|
|
|
|
|
|
|
**Expected behavior**
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
this: should really work
|
|
|
|
but: it strangely didn't
|
|
|
|
```
|
|
|
|
|
|
|
|
**Additional context**
|
|
|
|
Add any other context about the problem here.
|