{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/buildtools/issues/547","repository_url":"https://api.github.com/repos/dotnet/buildtools","labels_url":"https://api.github.com/repos/dotnet/buildtools/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/buildtools/issues/547/comments","events_url":"https://api.github.com/repos/dotnet/buildtools/issues/547/events","html_url":"https://github.com/dotnet/buildtools/pull/547","id":141480165,"number":547,"title":"Replace source with cat for better compatibility.","user":{"login":"leemgs","id":82404,"avatar_url":"https://avatars.githubusercontent.com/u/82404?v=3","gravatar_id":"","url":"https://api.github.com/users/leemgs","html_url":"https://github.com/leemgs","followers_url":"https://api.github.com/users/leemgs/followers","following_url":"https://api.github.com/users/leemgs/following{/other_user}","gists_url":"https://api.github.com/users/leemgs/gists{/gist_id}","starred_url":"https://api.github.com/users/leemgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemgs/subscriptions","organizations_url":"https://api.github.com/users/leemgs/orgs","repos_url":"https://api.github.com/users/leemgs/repos","events_url":"https://api.github.com/users/leemgs/events{/privacy}","received_events_url":"https://api.github.com/users/leemgs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/buildtools/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-17T04:48:17Z","updated_at":"2016-03-17T10:27:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/buildtools/pulls/547","html_url":"https://github.com/dotnet/buildtools/pull/547","diff_url":"https://github.com/dotnet/buildtools/pull/547.diff","patch_url":"https://github.com/dotnet/buildtools/pull/547.patch"},"body":"The source  command is a bash build-in command. It is not a program - like ls or grep.\r\nOn up-to-date Ubuntu distribution, /bin/sh calls /bin/dash. Traditionally, /bin/sh\r\ncalled /bin/bash for supporting compatibility mode. Let's use **cat **command instead of\r\n**source** command to support better compatibility.\r\n\r\nSigned-off-by: Geunsik Lim geunsik.lim@samsung.com\r\nSigned-off-by: Prajwal A N an.prajwal@samsung.com\r\nSigned-off-by: MyungJoo Ham myungjoo.ham@samsung.com"},"comment":{"url":"https://api.github.com/repos/dotnet/buildtools/issues/comments/197808219","html_url":"https://github.com/dotnet/buildtools/pull/547#issuecomment-197808219","issue_url":"https://api.github.com/repos/dotnet/buildtools/issues/547","id":197808219,"user":{"login":"leemgs","id":82404,"avatar_url":"https://avatars.githubusercontent.com/u/82404?v=3","gravatar_id":"","url":"https://api.github.com/users/leemgs","html_url":"https://github.com/leemgs","followers_url":"https://api.github.com/users/leemgs/followers","following_url":"https://api.github.com/users/leemgs/following{/other_user}","gists_url":"https://api.github.com/users/leemgs/gists{/gist_id}","starred_url":"https://api.github.com/users/leemgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemgs/subscriptions","organizations_url":"https://api.github.com/users/leemgs/orgs","repos_url":"https://api.github.com/users/leemgs/repos","events_url":"https://api.github.com/users/leemgs/events{/privacy}","received_events_url":"https://api.github.com/users/leemgs/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T10:27:04Z","updated_at":"2016-03-17T10:27:04Z","body":"> What is most portable and the winner? None of the above, it's sh!\r\n\r\n@jasonwilliams200OK ,  So, we have to use **cat** command instead of built-in **source** command.\r\nLike the below example, on up-to-date Ubuntu distribution, /bin/sh calls /bin/dash. Let's use **cat** command to support better compatibility mode against the existing **source** command for Linux distributions such Ubuntu, Debian, CentOS, and RHEL. \r\n```\r\nls -l `which sh`\r\ninvain@target:~$ ls -l `which sh`\r\nlrwxrwxrwx 1 root root 4 12 21 17:01 /bin/sh -> dash\r\ninvain@target:~$ \r\n\r\n``` "}}