delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/16/14:37:55

From: earnie_boyd AT hotmail DOT com (Earnie Boyd)
Subject: Re: problem with batch files.
16 Jan 1998 14:37:55 -0800 :
Message-ID: <19980115130611.20646.qmail.cygnus.gnu-win32@hotmail.com>
To: olc AT tele DOT ucl DOT ac DOT be
Cc: gnu-win32 AT cygnus DOT com

Make certain that your file doesn't contain the \r\n combination.  It 
should only contain the \n combination.  Also, your mounts need to be 
text=binary.  Look at the mail archives for all kinds of banter on this 
subject.

>Date: Tue, 13 Jan 1998 21:58:22 +0100
>From: Olivier Cuisenaire <olc AT tele DOT ucl DOT ac DOT be>
>To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>
>Subject: 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 AT cygnus DOT com" with one line of text: "help".
>


-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd AT hotmail DOT com-
------ooo0O--O0ooo-------

Check out these great gnu-win32 related sites:
ftp://ftp.cygnus.com/pub/gnu-win32/latest/           (ftp site)
http://www.cygnus.com/pubs/gnupro/                   (Comercial Page)
http://www.cygnus.com/misc/gnu-win32/                (Project Page)
http://www.cygnus.com/ml/gnu-win32                   (Mail Archives)
http://www.itribe.net/virtunix/winhelp-man-pages/    (HTML Man Pages)
http://www.lexa.ru/sos                               (Sergey Okhapkin)
ftp://www.lexa.ru/pub/domestic/sos/                (Sergey's ftp site)
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html        (Colin Peters)
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan)
http://gnu-win32.paranoia.ru                   (Chuck Bogorad's ports)
ftp://ftp.deninc.com/pub (Den Internet Services - US mirror and ports)


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019