This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: An AWK-ward problem...


>On November 24, 2011 10:17 AM Corinna Vinschen wrote:
>
>On Nov 23 15:21, Flint, Paul wrote:
>> Greetings List lurkers,
>> 
>> I have been troubleshooting some new bash script that I wrote and wanted (for some reason :^) to run on an NT box.
>> 
>> So the struggle began...
>> 
>> Anyway I get the oddest error:
>> 
>> <snip>
>> /cygdrive/c/Program Files/Git/bin/awk: line 7: $'\r': command not found
>> /cygdrive/c/Program Files/Git/bin/awk: line 7: $'\r': command not found
>> warning: LF will be replaced by CRLF in sendjcl.log.
>> <snap>
>> 
>> So... I check my code and check my code... soon the problem begins to drive me mad...
>> 
>> Then!
>> 
>> I do this from a cygwin ver 2.761 terminal...
>> 
>> $cd /c/cygwin/bin
>> $dos2unix awk
>> 
>> Now awk works!
>
>I don't believe in this solution:
>
>- /cygdrive/c/Program Files/Git/bin/awk is apparently the name of a
>  shell script.  /cygdrive/c/Program Files/Git/bin/awk is certainly
>  not /bin/awk.

Actually, this looks like you arenât running cygwin at all.  Did you
install msys git?  That would install a rudimentary set of unix tools
compiled with mingw, the default path is exactly as in your error
message.  Check your path settings.

Michael

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]