mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
50 lines
825 B
Markdown
50 lines
825 B
Markdown
---
|
|
name: Bug report - V4
|
|
about: Create a report to help us improve
|
|
title: ''
|
|
labels: bug, v4
|
|
assignees: ''
|
|
|
|
---
|
|
|
|
**Describe the bug**
|
|
A clear and concise description of what the bug is.
|
|
|
|
Version of yq: 4.X.X
|
|
Operating system: mac/linux/windows/....
|
|
Installed via: docker/binary release/homebrew/snap/...
|
|
|
|
**Input Yaml**
|
|
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
|
|
data1.yml:
|
|
```yaml
|
|
this: should really work
|
|
```
|
|
|
|
data2.yml:
|
|
```yaml
|
|
but: it strangely didn't
|
|
```
|
|
|
|
**Command**
|
|
The command you ran:
|
|
```
|
|
yq eval-all 'select(fileIndex==0) | .a.b.c' data1.yml data2.yml
|
|
```
|
|
|
|
**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.
|