{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/14121","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/14121/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/14121/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/14121/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/14121","id":149000936,"number":14121,"title":"13103103: OS X 10.8.2: path_helper alters $PATH even when added dirs are already present","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:other%20bug","name":"classification:other bug","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/66","html_url":"https://github.com/lionheart/openradar-mirror/milestones/Mac%20OS%20X","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/66/labels","id":1238025,"number":66,"title":"Mac OS X","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":159,"closed_issues":0,"state":"open","created_at":"2015-08-03T10:45:58Z","updated_at":"2016-04-17T22:01:57Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-17T22:01:57Z","updated_at":"2016-04-17T22:01:57Z","closed_at":null,"body":"#### Description\n\nSummary:\r\n\r\nThe /usr/libexec/path_helper program prepends the appropriate directories to $PATH (i.e., the ones given in /etc/paths and /etc/paths.d), even if those directories are already present in $PATH. If those directories are already in $PATH, there really is no need to add them again.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Open a new Terminal window or tab.\r\n2. Prepend a directory to $PATH, so it is different from the default one constructed by path_helper. For example, run \"export PATH=/usr/local/sbin:$PATH\". If your shell's startup files already add directories to $PATH, this step is unnecessary.\r\n3. Run \"/usr/libexec/path_helper -s\" to display the new $PATH that path_helper constructs.\r\n\r\nExpected Results:\r\n\r\nSince $PATH already contains all the entries that /usr/libexec/path_helper wants to add, path_helper should not alter it.\r\n\r\nActual Results:\r\n\r\n/usr/libexec/path_helper moves all default paths back to the beginning of $PATH. This is unnecessary; path_helper should only append any entries that are missing from the pre-existing $PATH.\r\n\r\nRegression:\r\n\r\nI do not have older versions of OS X available to check for regressions.\n\n-\nProduct Version: 10.8.2 (12C60)\nCreated: 2013-01-29T08:03:35.781509\nOriginated: 2013-01-28T23:29:00\nOpen Radar Link: http://www.openradar.me/13103103"}}