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

The modified value cannot be hexadecimal #929

Closed
shing-lee opened this issue Aug 30, 2021 · 2 comments
Closed

The modified value cannot be hexadecimal #929

shing-lee opened this issue Aug 30, 2021 · 2 comments
Labels
Milestone

Comments

@shing-lee
Copy link

Describe the bug
Given a file called config.yaml containing the following YAML:

version: 1.0.1
id: 0x1111

Processing with this shell:

1. yq e '.id=0x2222' config.yaml
2. yq e '.id=“0x2222”' config.yaml

Output is unfortunately:

1:
Error: Parsing expression: Lexer error: could not match text starting at 1:6 failing at 1:7.
	unmatched text: "x"
2:
version: 1.0.1
id: ”0x2222“

Expected output:

version: 1.0.1
id: 0x2222

Version of yq: 4.12.1
Operating system: linux
Installed via: binary release

@mikefarah
Copy link
Owner

Will fix in next release

@mikefarah mikefarah added this to the 4.12.2 milestone Sep 5, 2021
@mikefarah
Copy link
Owner

Fixed in 4.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants