X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: Help on dos2unix Date: Tue, 16 Sep 2008 18:47:42 +0200 Message-ID: <72B97F56A23E3844BB0DEC054CD85C3906857487@ltssvex10.lts.liebherr.i> In-Reply-To: <48CFDD13.1070203@ru.is> References: <72B97F56A23E3844BB0DEC054CD85C39067A1D64 AT ltssvex10 DOT lts DOT liebherr DOT i> <72B97F56A23E3844BB0DEC054CD85C39067A273F AT ltssvex10 DOT lts DOT liebherr DOT i> <48C86E4E DOT 2070608 AT byu DOT net> <72B97F56A23E3844BB0DEC054CD85C3906818457 AT ltssvex10 DOT lts DOT liebherr DOT i> <48CA5A5C DOT 9080206 AT byu DOT net> <72B97F56A23E3844BB0DEC054CD85C3906857340 AT ltssvex10 DOT lts DOT liebherr DOT i> <48CFDD13 DOT 1070203 AT ru DOT is> From: "Heude Pascal (LTS)" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m8GGml2K004955 I already have a workaround using a cat and tr commands. I just want to understand the problem because I could imagine that it could come from a cygwin installation problem on my PC. Thanks. Pascal -----Message d'origine----- De : cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] De la part de Mary Envoyé : mardi 16 septembre 2008 18:22 À : cygwin AT cygwin DOT com Objet : Re: Help on dos2unix If this is just about changing line endings, I wrote a perl script to do it. You're welcome to have it if you like. It's very simple, it just changes \r\n to \n one way, and \n to \r\n the other way for all the files in the directory from which it is run. Mary Heude Pascal (LTS) wrote: > Thanks Eric for your quick answer. > Here after is the result of the "make all" command : > > C:\microtec\5.3\tools\bin:/cygdrive/c/microtec/tools/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/PROGRA~1/INFORMIX/BIN:/cygdrive/c/oracle/ora92/bin:/cygdrive/c/Program Files/Oracle/jre/1.1.8/bin:/cygdrive/c/NETMANAG.32:/cygdrive/c/oracle/ora92/jre/1.4.2/bin/client:/cygdrive/c/oracle/ora92/jre/1.4.2/bin:/cygdrive/c/Program Files/Windows Imaging/:/cygdrive/c/Program Files/SmarTeam/bin:/cygdrive/c/diab/4.4b/WIN32/bin:/cygdrive/c/microtec/5.3/tools/bin:/usr/bin:/cygdrive/c/MENTOR~1/LICENS~1:/usr/lib/lapack:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/tosca:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/buildID:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/lilog:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/lics:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/rmCC:/cygdrive/f/Surveillance Systemes/SOFTWARE/cygwin_tools/scripts/l82023aa, /bin/bash > /usr/bin/dos2unix > make: *** [all] Error 128 > > > -----Message d'origine----- > De : Eric Blake [mailto:ebb9 AT byu DOT net] > Envoyé : vendredi 12 septembre 2008 14:03 > À : cygwin AT cygwin DOT com; Heude Pascal (LTS) > Objet : Re: Help on dos2unix > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > According to Mark J. Reed on 9/12/2008 4:51 AM: > >> You top posted again, and you left the email addresses in again. >> Both of those are in violation of the list policy. >> >> On Fri, Sep 12, 2008 at 6:19 AM, Heude Pascal (LTS) wrote: >> >>> The command 'type dos2unix' gives the following result : dos2unix is /usr/bin/dos2unix >>> There is also a dos2unix in /bin. >>> It seems that there are identical (at least same name and same size). >>> >> I believe that /usr/bin and /bin in Cygwin refer to the same directory. >> > > Yes, in the default installation, they are mounted to the same location. > > >> Does the make command work, despite the exit code? Are the carriage >> returns gone from the file? >> > > One other thing to check is whether make is picking up a different shell > and/or path than what you are using on the command line, and thus using > non-cygwin tools in the process. In other words, what does 'make all' say > on this file (remember to use tab)? > > all: > @echo $$PATH, $$SHELL > @which dos2unix > @dos2unix --version > > - -- > Don't work too hard, make some time for fun as well! > > Eric Blake ebb9 AT byu DOT net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (Cygwin) > Comment: Public key at home.comcast.net/~ericblake/eblake.gpg > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkjKWlwACgkQ84KuGfSFAYBB9wCgx0l3Abm9UyNiucmU2FoLi+Ny > HbUAmwRGC68sGjITzgZ5u5z45ZdNTeJf > =xEaS > -----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/ > > . > > Vinsamlega athugiğ ağ upplısingar í tölvupósti şessum og viğhengi eru eingöngu ætlağar şeim sem póstinum er beint til og gætu innihaldiğ upplısingar sem eru trúnağarmál. Sjá nánar: http://www.ru.is/trunadur Please note that this e-mail and attachments are intended for the named addresses only and may contain information that is confidential and privileged. Further information: http://www.ru.is/trunadur -- 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/ -- 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/