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 error using case insensitive mode #7

Closed
kholland950 opened this issue Nov 17, 2015 · 1 comment
Closed

Sed error using case insensitive mode #7

kholland950 opened this issue Nov 17, 2015 · 1 comment

Comments

@kholland950
Copy link

When using the case insensitive mode (either from flag, or BD_OPT), receive a sed error when there is a second argument (the string to match)

Error:
sed: 1: "s|(./sch[^/]/).*|\1|I": bad flag in substitute command: 'I'
test: Missing argument at index 2

screen shot 2015-11-17 at 4 14 39 pm

Do you know how to fix this problem? Am I doing something wrong? Let me know if you need anymore information about this issue

@kholland950
Copy link
Author

Fixed! OS X sed and GNU sed are NOT the same! This function works with GNU sed, but not OS X sed. OS X users should get gnu-sed and sym link it to /usr/local/bin/sed to fix this issue

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

1 participant