-
Notifications
You must be signed in to change notification settings - Fork 64
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
Gawk installation location incorrect on MacOS #24
Comments
I don't know how to fix it right now because there is a problem with portability in shebang: https://www.wikiwand.com/en/Shebang_(Unix)#/Character_interpretation So we can't use I think Homebrew scripts should patch |
Oh I didn't use homebrew to install Instead, a more portable solution might be to use a shell script e.g. something like this #!/usr/bin/env sh
read -d '' scriptVariable << 'EOF'
BEGIN {
print "start"
}
{
print $0
}
END{
print "hello"
}
EOF
gawk -f "$scriptVariable" ${inputfile} This way the problem you mentioned is sidestepped completely |
#35 |
Homebrew installs
gawk
to/usr/local/bin/gawk
on MacOS, but the make file only works if it's installed to/usr/bin/gawk
The text was updated successfully, but these errors were encountered: