This is the mail archive of the cygwin@sourceware.cygnus.com 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]

problem with batch files.


When I try to this very simple file (named coco):

#!/bin/sh
#
ls
echo hello

I receive, after the result of the ls command, the following error:

coco: o: command not found

The problem being that it seems to delete the first three characters of the
last line leaving only "o hello". This diagnosis is confirmed by the fact
inserting any three characters at the beginning of this line will solve the
problem, while inserting one or two characters give the errors "ho: command
not found" and "cho: command not found" respectively.

This is very discturbing when using more complex batch files (I actually
would like to use the configure file to install lesstif)

Is this a known bug for which a patch exists ? (I'm currently using
sh-2.01, sergey's patch)

Thanks.

Olivier

-- Olivier Cuisenaire, Ph. D. student --

     " Whenever you find yourself on the side of the 
       majority, it is time to pause and reflect. "

                                   Mark Twain
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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