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: FW: Eliminating need to run dos2unix on scripts on mounted drive


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Mary Ann Yeager on 8/10/2007 12:50 PM:
> When I try to run the script, I get the following:
> 
> ./01do_build.sh: line 2: $'\r': command not found
> ./01do_build.sh: line 6: $'\r': command not found
> ./01do_build.sh: line 9: $'\r': command not found
> 
> If I run a dos2unix on the script, those errors go away.  Running from
> another Cygwin install, I have already run the dos2unix command on this
> file via the mount, why do I have to run it again?  

Running d2u helps any time you have reintroduced carriage returns into a
script file on a binary mount.

> 
> Also, is there something in my setup that I can do to make it such that
> I don't have to run it at all?  A previous install of Cygwin did not
> require the dos2unix.

Reread the bash announcement for several ideas.
http://cygwin.com/ml/cygwin-announce/2007-05/msg00003.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvNet84KuGfSFAYARAuqcAKC91GWKdcwUoyDgrLrM0gNru4ZOTQCgybt+
Rrbgn2sxHpOGsPMIzIoMLlw=
=RZ14
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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