{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/497","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/497/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/497/events","html_url":"https://github.com/LLNL/spack/pull/497","id":138674627,"number":497,"title":"Fix #104, #54: issues with overlong shebang in deep directories.","user":{"login":"tgamblin","id":299842,"avatar_url":"https://avatars.githubusercontent.com/u/299842?v=3","gravatar_id":"","url":"https://api.github.com/users/tgamblin","html_url":"https://github.com/tgamblin","followers_url":"https://api.github.com/users/tgamblin/followers","following_url":"https://api.github.com/users/tgamblin/following{/other_user}","gists_url":"https://api.github.com/users/tgamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/tgamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgamblin/subscriptions","organizations_url":"https://api.github.com/users/tgamblin/orgs","repos_url":"https://api.github.com/users/tgamblin/repos","events_url":"https://api.github.com/users/tgamblin/events{/privacy}","received_events_url":"https://api.github.com/users/tgamblin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-05T12:26:30Z","updated_at":"2016-03-11T16:27:15Z","closed_at":"2016-03-07T03:30:28Z","pull_request":{"url":"https://api.github.com/repos/LLNL/spack/pulls/497","html_url":"https://github.com/LLNL/spack/pull/497","diff_url":"https://github.com/LLNL/spack/pull/497.diff","patch_url":"https://github.com/LLNL/spack/pull/497.patch"},"body":"This does several things:\r\n\r\n- Add `sbang`: a script to run scripts with long shebang lines.\r\n  - Documentation for `sbang` is in `bin/sbang`.\r\n\r\n- Add an `sbang` hook that filters the `bin` directory after install\r\n  and modifies any scripts wtih shebangs that are too long to use\r\n  `sbang` instead.\r\n\r\n- `sbang` is at the top level, so it should be runnable (not much we\r\n  can do if spack itself is too deep for shebang)\r\n  - `sbang`, when used as the interpreter, runs the *second* shebang\r\n    line it finds in a script.\r\n  - shoud fix issues with too long shebang paths."},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/195438965","html_url":"https://github.com/LLNL/spack/pull/497#issuecomment-195438965","issue_url":"https://api.github.com/repos/LLNL/spack/issues/497","id":195438965,"user":{"login":"cyrush","id":1194526,"avatar_url":"https://avatars.githubusercontent.com/u/1194526?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrush","html_url":"https://github.com/cyrush","followers_url":"https://api.github.com/users/cyrush/followers","following_url":"https://api.github.com/users/cyrush/following{/other_user}","gists_url":"https://api.github.com/users/cyrush/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrush/subscriptions","organizations_url":"https://api.github.com/users/cyrush/orgs","repos_url":"https://api.github.com/users/cyrush/repos","events_url":"https://api.github.com/users/cyrush/events{/privacy}","received_events_url":"https://api.github.com/users/cyrush/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T16:27:15Z","updated_at":"2016-03-11T16:27:15Z","body":"@tgamblin  in the spack install environment, is there a way for me to explicitly sbang-ify a script?\r\n\r\nThe auto hook works for a subset of what we want, but we do have scripts that won't appear in the bin dir. \r\n"}}