jqlang / jq

Command-line JSON processor
https://jqlang.github.io/jq/
Other
30.08k stars 1.56k forks source link

jq 1.5 windows app crash when using relative paths #1155

Open ribbles opened 8 years ago

ribbles commented 8 years ago

This causes app crash on windows: jq -r "." bin\..\dynamodb\table-list.json

But this works: jq -r "." dynamodb\table-list.json

Workaround is: cat bin\..\dynamodb\table-list.json | jq -r "."

pkoppstein commented 8 years ago

Unfortunately the latest "official" release of jq (jq 1.5 of Aug 18, 2015) is quite out-of-date, and it is likely that the reported bug has already been fixed on "master" (perhaps by the change on September 11, 2015).

Would you be able to test whether a recent version of jq exhibits the same problem on Windows?

Meanwhile, thanks for identifying a workaround.

Reference: #939

bigretromike commented 8 years ago

both 32 and 64bit version for windows inside cygwin env are unable to read files from full path. They work great with only file name, but if you point full path to file it throw error: could not open file. No such file or directory.

Also @ribbles thanks for workaround that helped.