Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • It still errors out so I can only assume the environment variable is not correctly parsed because if I replace it with the actual string it works. mkdir cat dummy.json | ruby -rjson -e 'j = JSON.parse($stdin.read); puts j["ChgSub"]["'"$GHREPO"'"][0]["Major"].to_s'` Commented Nov 26, 2014 at 23:22
  • @mihai What is the value of GHREPO? Commented Nov 26, 2014 at 23:52
  • A string... "ecx". I've updated the question with the json content as well. To reproduce the issue you need to set export GHREPO=ecx and run the command Commented Nov 27, 2014 at 0:02
  • @Etan, I finally got it though have my vote anyway as it's close to your answer! Commented Nov 27, 2014 at 0:52