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
GNU/BSD sed compatibility #12
Comments
That fails for me on FreeBSD: alistair@loki:~$ cat > file.c
#!/usr/bin/c blah blah blah
alistair@loki:~$ sed -i.bak '1!b;s/^#!/\/\/#!/' file.c
sed: 1: "1!b;s/^#!/\/\/#!/": undefined label ';s/^#!/\/\/#!/' |
Since only the first line is considered, this works (also tested on FreeBSD).
|
Yep, that works for me! |
@lukaf Cool that works for GNU, too! I'll use that later today. Then, we should be able to get a homebrew package going. |
Okay, I've merged in this change. Can someone try using the new script? |
I have removed |
We need a command that doesn't require
gnu-sed
to be installed with brew.This should work on both GNU and BSD systems:
However, I don't have access to a BSD system...
It works just fine on GNU. Can someone confirm that it works on BSD systems, too? Thanks.
The text was updated successfully, but these errors were encountered: