{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/733","labels_url":"https://api.github.com/repos/creationix/nvm/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/733/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/733/events","html_url":"https://github.com/creationix/nvm/issues/733","id":69352348,"number":733,"title":"Gives error regarding sort on OpenBSD","user":{"login":"greduan","id":2314074,"avatar_url":"https://avatars.githubusercontent.com/u/2314074?v=3","gravatar_id":"","url":"https://api.github.com/users/greduan","html_url":"https://github.com/greduan","followers_url":"https://api.github.com/users/greduan/followers","following_url":"https://api.github.com/users/greduan/following{/other_user}","gists_url":"https://api.github.com/users/greduan/gists{/gist_id}","starred_url":"https://api.github.com/users/greduan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greduan/subscriptions","organizations_url":"https://api.github.com/users/greduan/orgs","repos_url":"https://api.github.com/users/greduan/repos","events_url":"https://api.github.com/users/greduan/events{/privacy}","received_events_url":"https://api.github.com/users/greduan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-18T22:09:46Z","updated_at":"2015-04-19T01:31:48Z","closed_at":null,"body":"I am on OpenBSD 5.6, just installed it yesterday.\r\n\r\nWhile one Linux I never had this error but now that I'm on OpenBSD I am having it. Which makes me believe that something in the script isn't POSIX-compliant.\r\n\r\nThis is the error:\r\n\r\n```\r\n$ nvm i 0.12 \r\nsort: fields out of order\r\nVersion '0.12' not found - try `nvm ls-remote` to browse available versions.\r\n$ nvm ls-remote\r\nsort: fields out of order\r\n    iojs-v1.0.0\r\n    iojs-v1.0.1\r\n    iojs-v1.0.2\r\n    iojs-v1.0.3\r\n    iojs-v1.0.4\r\n    iojs-v1.1.0\r\n    iojs-v1.2.0\r\n    iojs-v1.3.0\r\n    iojs-v1.4.1\r\n    iojs-v1.4.2\r\n    iojs-v1.4.3\r\n    iojs-v1.5.0\r\n    iojs-v1.5.1\r\n    iojs-v1.6.0\r\n    iojs-v1.6.1\r\n    iojs-v1.6.2\r\n    iojs-v1.6.3\r\n    iojs-v1.6.4\r\n    iojs-v1.7.1\r\n$ \r\n```\r\n\r\nAnd if I do `nvm i iojs.v1.7.1` I get:\r\n\r\n```\r\n$ nvm i iojs-v1.7.1\r\nsort: fields out of order\r\n```\r\n\r\nI imagine the problem is a GNU-ism being used or something, but I'm not sure.\r\n\r\nYou can search the OpenBSD man pages here, in case it's needed: http://www.openbsd.org/cgi-bin/man.cgi?manpath=OpenBSD-5.6"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/94219671","html_url":"https://github.com/creationix/nvm/issues/733#issuecomment-94219671","issue_url":"https://api.github.com/repos/creationix/nvm/issues/733","id":94219671,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T01:31:48Z","updated_at":"2015-04-19T01:31:48Z","body":"Thanks! It's interesting that the error output seems to be on stdin, not stderr. If you run `echo v1.2.3 | sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n` do you get the same error?"}}