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

awk: invalid -v option [OS X Lion] #640

Closed
abh1nav opened this issue Sep 30, 2011 · 20 comments
Closed

awk: invalid -v option [OS X Lion] #640

abh1nav opened this issue Sep 30, 2011 · 20 comments

Comments

@abh1nav
Copy link

abh1nav commented Sep 30, 2011

When attempting to auto-complete "./manage runserver" in a Django Project root folder, an awk error pops up:

(venv)➜ project git:(master) ./manage.py runs➜awk: invalid -v option

erver

Although it manages to complete the option, it seems awk does not support the -v flag on OS X Lion.

@oinopion
Copy link

oinopion commented Feb 1, 2012

Will this be fixed? Is there any work-around?

@stephenmckinney
Copy link

+1 I'm having the same issue.

@ukch
Copy link

ukch commented Feb 29, 2012

I have the same issue with various other tools (for instance svn)

@mateuszdraco
Copy link

+1, the same issue :(

@stephenmckinney
Copy link

This bug is fixed in the sorin's fork. When they merge for 2.0, all be right again

@surjikal
Copy link

Still having this issue.

@phretor
Copy link

phretor commented Dec 12, 2012

+1 - please fix this, it's very annoying.

@ricardodani
Copy link

+1 here. Any workahound?

@ternus
Copy link

ternus commented Dec 28, 2012

+1 here -- please fix

@humiaozuzu
Copy link

Try using gawk will solve the issue

brew install gawk

@GregIngelmo
Copy link

brew install gawk

That worked, thank you.

@benguillet
Copy link

Same as @kemist, fixed the issue

@lajarre
Copy link

lajarre commented Jul 1, 2013

+1, why not put a space after "-v"? see there => http://www.zsh.org/mla/workers/2013/msg00023.html
Ok with macports gawk though

@dschien
Copy link

dschien commented Aug 24, 2013

@lajarre I installed gawk with brew but that didn't help. I also can't find the line in plugings/django/django.plugin.zsh
Could you tell me in what file should I add the space, please?

@jcelliott
Copy link

Thanks @humiaozuzu. @dschien I had to symlink awk to gawk. It probably didn't work for you because /usr/bin/awk is in your path before /usr/local/bin/gawk.

@jakob223
Copy link

As @jcelliott I needed to symlink awk to gawk and now it works.

@ybbarng
Copy link

ybbarng commented Jun 19, 2014

I found the 'awk -vdrop' in /usr/share/zsh/5.0.2/functions/_django 62 line, therefore I modified it to 'awk -v drop' and reloaded zsh. Now the autocompletion is good.

@thornomad
Copy link

Had the same issues, fixed using gawk ... I also tried version 5.0.5 of zsh via brew and it is still in there.

Although it appears the issue was patched back in Jan of 2013: zsh-users/zsh@0969fb9

@mcornella
Copy link
Member

Thank you @thornomad for going the extra mile and checking the homebrew installation and the zsh repo ✨

You should try zsh 5.0.6, it's definitely solved there (though in 5.0.5 it was too), and it should also be available via brew

@DingBowen123
Copy link

I fixed it by brew install gawk

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