-
Notifications
You must be signed in to change notification settings - Fork 2k
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' is not recognized #330
Comments
Interestingly, if we look at the contents of λ cat "C:\Program Files (x86)\Git\bin\awk"
#!/bin/sh
# Copyright (C) 2002, Earnie Boyd
# mailto:earnie@users.sf.net
# This file is part of MSYS
# http://www.mingw.org/msys.shtml
# File: awk
gawk "$@" Using |
Nice, I didn't take the time to investigate further and simply assumed
|
@span It's a strange one. Seems cmd.exe can't interpret how to run those files. Running For the time being, you can get around the issue by adding the following to cmder's aliases file awk=sh awk $* Admittedly not the most elegant solution, but easier than retraining your brain your brain to type |
Nice, I find working workarounds the most beautiful so I have no second thoughts about this ;) |
I just added a new startup task with this command instead of an alias:
But I don't know how to get that cute lambda prompt. |
@vohof Interesting, what are the benefits of using a startup task over an alias? |
@rmorrin I could use all the other msysgit binaries |
A simple solution to this issue that works for Vista on up is just to use a symlink.
Or you could create a batch file named awk.bat with the command:
Do note that I'm not sure how the arguments are passed as far as spaces go. Wrapping the "%*" in quotes doesn't work. So I think the cleanest solution is just to use a symlink. |
I just renamed |
I saw this issue #23 which mentions that awk is not running. The issue is closed but since awk was not the main concern in the issue it was never treated.
I'm running Windows 7 64-bit and I have the awk binary in
vendor\msysgit\bin\
but when I try to run it in Cmder it is not recognizedI changed the filename to
awk.exe
and got this instead:I'm not sure if this is supposed to work or not but I figured I'd post it here if you have any input or for anyone else looking for this.
The text was updated successfully, but these errors were encountered: