This is the mail archive of the
mailing list for the Cygwin project.
Re: awk bug in cygwin 1.5.5 under windows xp
On Wed, 1 Oct 2003, Corinna Vinschen wrote:
> On Wed, Oct 01, 2003 at 11:19:10AM +0200, Karsten Fischer wrote:
> > awk fails when called from the cmd or cmdproxy shell. The shell does not
> > interpret correctly the link to gawk. Apparently this observation was
> That's a problem of the shell, not of gawk. The installation procedure
> of gawk on Cygwin is identical to the installation procedure of gawk on
> Linux. awk is just a symlink to gawk.
I believe a solution was suggested before: distribute a .bat file for
common symlinks. If the awk package contained /bin/awk.bat (which called
gawk.exe), "awk" would work in both the cmd prompt and Cygwin shells.
Similarly for "vi", "gunzip", "[ef]grep", "[ck]sh", "zcat", etc. One
problem is that parameter passing is tricky, and may need advanced cmd.exe
features (i.e., won't work on Win9x)... Another is that you can't use
commands like "exit" in those batch files (or you'd need to "call" them,
which breaks the transparency).
> > reported several times in the internet.
> > Changing all "awk" to "gawk" in my scripts works fine, but a more
> > elegant solution would be desirable.
A question to the OP: which scripts? If they are shell scripts, you
shouldn't have this problem in the first place. Are you using "awk" in
> Using ash, bash, ksh, pdksh, tcsh, zsh would actually help. The Cygwin
> distribution is not designed to run in a native Windows shell in the
> first place.
Oh? Then what's with the @pathnames
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html