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

include "a" {search: "~/"}; #265

Closed
pkoppstein opened this issue Aug 28, 2024 · 1 comment
Closed

include "a" {search: "~/"}; #265

pkoppstein opened this issue Aug 28, 2024 · 1 comment

Comments

@pkoppstein
Copy link

From the jq documentation regarding "search" paths:

For paths starting with ~/, the user's home directory is substituted for ~.

Compare therefore:

$ jq -n -L. 'include "a" {search: "~/"}; a'
"Here"

$ gojq -n -L. 'include "a" {search: "~/"}; a'
gojq: compile error: function not defined: a/0
@itchyny
Copy link
Owner

itchyny commented Aug 28, 2024

Thanks for reporting.

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

No branches or pull requests

2 participants