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

Quoted parameters under windows not working #490

Open
kpym opened this issue Apr 22, 2023 · 0 comments
Open

Quoted parameters under windows not working #490

kpym opened this issue Apr 22, 2023 · 0 comments

Comments

@kpym
Copy link

kpym commented Apr 22, 2023

When I run the following script on Windows, it is fine:

ip = `curl -s https://api.ipify.org?format=json  | jq -rj .ip`
echo("your ip " + ip)

But when I run it with quotes, like in the original script, it returns nothing. Event when I try the following commands, the ip.ok is false:

  • ip = curl -s 'https://api.ipify.org?format=json' | jq -rj ".ip"
  • ip = curl -s 'https://api.ipify.org?format=json'
  • ip = curl -s "https://api.ipify.org?format=json"

So I think there is a problem with quoted arguments on Windows.

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

1 participant