wayneeseguin/rvm — Issue #625: tab completion problem on lion
Author: pellucidity
Created: 2011-11-29 23:34:26+00:00
State: open

https://github.com/sj26/rvm/commit/d30e14cfd45e7d3e14fcf50a68f84446c9fc5d89#commitcomment-755794

I had an issue using the tab completion with 1.10.0-pre on Lion

some seds don't like it when you string multiple commands together like this:
```rvm install [tab]```
```sed: 1: "s/^(\([^)]*\))\(.*\)(\( ...": bad flag in substitute command: 's' ```

how about using -e several times?
```__rvm_known ()
{
# Strips comments and expands known patterns into each variation
rvm list known | sed 's/#.*$//' | sed -e 's/^(\([^)]*\))\(.*\)(\([^)]*\))$/\1\2\3 \1\2 \2\3 \2/' -e 's/^(\([^)]*\))\(.*\)$/\1\2 \2/' -e 's/^\(.*\)(\([^)]*\))$/\1\2 \1/'
}
```