Troubles with bash scripts

Jean-Paul Le Fèvre Le_Fevre@rungis.cisi.fr
Wed Jan 28 03:07:00 GMT 1998


I'm having difficulties with my shell scripts : some characters
of the statements are swallowed :
Considering the most simple script (say 'foo') used to figure out the origin
of the bugs :
       set -vx
       ls
       echo what ?

If I launch it in a DOS window by typing  'bash foo', I got :
      ls
      +ls
      list of my files ...
      cho what ?
      + cho what ?
      foo: cho: command not found.

The first e of echo is crunched. Inserting a space at the beginning
of the line fixes the error. In more complexe scripts, I cannot
afford to add lot of white spaces on every lines.

On the other hand if I start an interactive bash in a DOS window
and if I execute directly the script 'foo' it works fine.

Help would be appreciated. Thank you !

____________________________________________________________________________
Jean-Paul Le Fèvre                      Tel  : (33) [0]1 41 80 44 57
http://www.mygale.org/03/lefevre  Mail : LeFevre@rungis.cisi.fr


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



More information about the Cygwin mailing list