{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/720","labels_url":"https://api.github.com/repos/NixOS/nix/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/720/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/720/events","html_url":"https://github.com/NixOS/nix/issues/720","id":118922535,"number":720,"title":"sh not called in \"curl https://nixos.org/nix/install\"","user":{"login":"martinvahi","id":861080,"avatar_url":"https://avatars.githubusercontent.com/u/861080?v=3","gravatar_id":"","url":"https://api.github.com/users/martinvahi","html_url":"https://github.com/martinvahi","followers_url":"https://api.github.com/users/martinvahi/followers","following_url":"https://api.github.com/users/martinvahi/following{/other_user}","gists_url":"https://api.github.com/users/martinvahi/gists{/gist_id}","starred_url":"https://api.github.com/users/martinvahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinvahi/subscriptions","organizations_url":"https://api.github.com/users/martinvahi/orgs","repos_url":"https://api.github.com/users/martinvahi/repos","events_url":"https://api.github.com/users/martinvahi/events{/privacy}","received_events_url":"https://api.github.com/users/martinvahi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-25T20:55:25Z","updated_at":"2015-11-25T21:36:20Z","closed_at":"2015-11-25T21:31:55Z","body":"The first 4 lines of the x.txt after the command \r\n\r\n    curl https://nixos.org/nix/install > x.txt\r\n\r\nare\r\n\r\n    <an empty line>\r\n    #!/bin/sh\r\n    \r\n    # This script installs the Nix package manager on your system by\r\n\r\nThat is to say, the very first line is empty in stead of starting with the **#!** and in stead of the more robust \r\n\r\n    #!/usr/bin/env sh\r\n\r\nthe **sh** is called by a far less robust \r\n\r\n    #!/bin/sh\r\n\r\nThe problem is that different Linux distributions can have the various shell binaries/startup-scripts at different paths, which are looked up by the de facto standardized **/usr/bin/env**, but the **#!/bin/sh** might not work on all Linux distributions."},"comment":{"url":"https://api.github.com/repos/NixOS/nix/issues/comments/159736540","html_url":"https://github.com/NixOS/nix/issues/720#issuecomment-159736540","issue_url":"https://api.github.com/repos/NixOS/nix/issues/720","id":159736540,"user":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars.githubusercontent.com/u/1785925?v=3","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T21:36:20Z","updated_at":"2015-11-25T21:36:20Z","body":"Yeah, the blank line seems not portable to me (and useless anyway)."}}