You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, ~/.jq when it is present as a file should be sourced automatically, but it is not.
To be clear, $HOME/.jqis sourced, however HOME is not a standard environment variable on Windows, you must set it manually. The corresponding environment variable on Windows is USERPROFILE.
To Reproduce
# ~/.jq:defa:
"a";
C:\Users\me>jq -n "a"
jq: error: a/0 is not defined at <top-level>, line 1:
a
jq: 1 compile error
C:\Users\me>set HOME=%USERPROFILE%
C:\Users\me>jq -n "a"
"a"
Environment
Windows 11
jq 1.7.1
The text was updated successfully, but these errors were encountered:
On Windows,
~/.jq
when it is present as a file should be sourced automatically, but it is not.To be clear,
$HOME/.jq
is sourced, howeverHOME
is not a standard environment variable on Windows, you must set it manually. The corresponding environment variable on Windows isUSERPROFILE
.To Reproduce
Environment
The text was updated successfully, but these errors were encountered: