Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update manual.yml #1537

Closed
wants to merge 1 commit into from
Closed

Update manual.yml #1537

wants to merge 1 commit into from

Conversation

yonatan-py
Copy link

@yonatan-py yonatan-py commented Nov 23, 2017

I think there was a small mistake :)

echo "[{\"x\": 1},{\"x\":2}]" | jq "[.[] | x]" don't work
but echo "[{\"x\": 1},{\"x\":2}]" | jq "[.[] | .x]" does

Copy link
Contributor

@pkoppstein pkoppstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update is partly wrong. The .x in the update should be x, as in the original.

@yonatan-py
Copy link
Author

yonatan-py commented Nov 24, 2017

@pkoppstein just tried my example again, they seem to be valid.

@pkoppstein
Copy link
Contributor

I am referring to the sentence: map(x)is equivalent to[.[] | .x]`

It doesn't matter what you tried, the above is absolutely incorrect. As should be self evident, it should read:

 `map(x)` is equivalent to `[.[] | x]`

@EugenGez
Copy link

EugenGez commented Sep 5, 2018

map(x) is defined as [.[] | x]

The x is a placeholder...

@itchyny
Copy link
Contributor

itchyny commented Jun 4, 2023

Yes, as commented above, the manual is correct.

@itchyny itchyny closed this Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants