{"action":"opened","issue":{"url":"https://api.github.com/repos/cea-hpc/modules/issues/178","repository_url":"https://api.github.com/repos/cea-hpc/modules","labels_url":"https://api.github.com/repos/cea-hpc/modules/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/cea-hpc/modules/issues/178/comments","events_url":"https://api.github.com/repos/cea-hpc/modules/issues/178/events","html_url":"https://github.com/cea-hpc/modules/issues/178","id":339856213,"node_id":"MDU6SXNzdWUzMzk4NTYyMTM=","number":178,"title":"module load autocomplete broken on osx","user":{"login":"arp2600","id":739817,"node_id":"MDQ6VXNlcjczOTgxNw==","avatar_url":"https://avatars2.githubusercontent.com/u/739817?v=4","gravatar_id":"","url":"https://api.github.com/users/arp2600","html_url":"https://github.com/arp2600","followers_url":"https://api.github.com/users/arp2600/followers","following_url":"https://api.github.com/users/arp2600/following{/other_user}","gists_url":"https://api.github.com/users/arp2600/gists{/gist_id}","starred_url":"https://api.github.com/users/arp2600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arp2600/subscriptions","organizations_url":"https://api.github.com/users/arp2600/orgs","repos_url":"https://api.github.com/users/arp2600/repos","events_url":"https://api.github.com/users/arp2600/events{/privacy}","received_events_url":"https://api.github.com/users/arp2600/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T14:00:48Z","updated_at":"2018-07-10T14:00:48Z","closed_at":null,"author_association":"NONE","body":"Auto complete for module load requires the sed `-r` flag, which isn't supported by the sed on osx.\r\nTyping `module load` and then tab, produces the following output:\r\n```\r\n$ module load sed: illegal option -- r\r\nusage: sed script [-Ealn] [-i extension] [file ...]\r\n       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]\r\n       q\r\n```\r\n\r\nThis problematic sed command is in `init/bash_completion`\r\n```\r\n_module_not_yet_loaded() {\r\n    _module_avail | sort | sed -r \"\\%^(${LOADEDMODULES//:/|})$%d\"\r\n}\r\n```\r\n\r\nRemoving the `-r` flag seems to fix the issue. I have tested this using the default osx sed and gnu-sed. On gnu-sed, behaviour didn't appear to change when removing the flag."}}
{"actor":{"display_login":"arp2600"}}