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

Replace sed -r s/foo/bar/I with BSD compatible equivalent #23

Closed
kaushalmodi opened this issue Feb 14, 2018 · 2 comments
Closed

Replace sed -r s/foo/bar/I with BSD compatible equivalent #23

kaushalmodi opened this issue Feb 14, 2018 · 2 comments

Comments

@kaushalmodi
Copy link
Owner

kaushalmodi commented Feb 14, 2018

From #18 (comment):

sed -r and the regex option I are GNU specific as well. And in this case you can achieve the same thing with Bash variable expansion:

some_var=${some_var/bash_builtins/builtins}
@kaushalmodi
Copy link
Owner Author

kaushalmodi commented Feb 14, 2018

@sshaw Can you try from the latest master.. at least the sed issue should be fixed.

@sshaw
Copy link

sshaw commented Feb 14, 2018

Working!

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

No branches or pull requests

2 participants