antonmedv / fx

Terminal JSON viewer & processor
https://fx.wtf
MIT License
19.07k stars 438 forks source link

Unable to read json file in windows git bash #318

Closed meblum closed 3 months ago

meblum commented 3 months ago

fx does not detect that the file descriptor is a terminal when using git bash on windows, so it always expects input from stdin. When calling fx with no argument, it just remains hanging instead of returning with usage info. When a file is passed as an argument, it interprets it as a function.

meblum commented 3 months ago

Seems that the problem is only on newer versions of git bash.