Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed -r not supported on on osx #35

Closed
eaubin opened this issue Sep 8, 2016 · 7 comments
Closed

sed -r not supported on on osx #35

eaubin opened this issue Sep 8, 2016 · 7 comments

Comments

@eaubin
Copy link

eaubin commented Sep 8, 2016

Running with gives

sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
@desyncr
Copy link
Contributor

desyncr commented Sep 8, 2016

The line is here. I think sed -E should work.

@waldyrious
Copy link

-E works in OS X, but then wouldn't it stop working on other platforms? -E is used in FreeBSD and Mac OSX, but FreeBSD has an -r alias, while OS X doesn't...

@desyncr
Copy link
Contributor

desyncr commented Sep 8, 2016

@waldyrious -E does work on both BSD and GNU sed AFAIK. I can't throughout test the code right now, though.

@waldyrious
Copy link

waldyrious commented Sep 8, 2016

That would be great, but it doesn't seem to be the case. You may be thinking of lowercase -e which indeed works in both BSD sed and GNU sed.

@desyncr
Copy link
Contributor

desyncr commented Sep 8, 2016

@waldyrious
Copy link

waldyrious commented Sep 8, 2016

Nice! So we could use -E, cool. And wow, the fragmentation :/

@cvogt
Copy link
Collaborator

cvogt commented Sep 11, 2016

same here

@mchav mchav closed this as completed in #36 Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants