sed: unknown option -- i on OpenBSD 5.1 #1091

Closed
ghost opened this Issue Sep 4, 2012 · 4 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Sep 4, 2012

Retrieving rubygems-1.8.24
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  371k  100  371k    0     0  1149k      0 --:--:-- --:--:-- --:--:-- 3256k
Extracting rubygems-1.8.24 ...
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p194 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p194 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]
ruby-1.9.3-p194 - #importing default gemsets (/www/shhhh/.rvm/gemsets/)
Install of ruby-1.9.3-p194 - #complete
sed: unknown option -- i
usage: sed [-aEnru] command [file ...]
       sed [-aEnru] [-e command] [-f command_file] [file ...]

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
ps: comm: illegal keyword specification
You need to change your terminal settings to allow shell login.
Please visit https://rvm.io/workflow/screen/ for example.
Member

richo commented Sep 4, 2012

Oh boy. I'll have a look.

@ghost

ghost commented Sep 4, 2012

Much obliged Richo!

richo added a commit that referenced this issue Sep 4, 2012

@ghost

ghost commented Sep 4, 2012

Nicely done!

@ghost ghost closed this Sep 4, 2012

Member

richo commented Sep 4, 2012

There's some other stuff that's broken in the same way, issuing a more thorough fix now.

richo added a commit that referenced this issue Sep 4, 2012

Replace all sed -i invokations with a wrapper function
This also fixes any sed calls that had an implicit -e for the command
string.

Update #1091

@ghost ghost assigned richo Sep 4, 2012

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment