RE: bash scripting problem

2006-12-04 Thread Kenneth Nellis
-Original Message- From: Rob Walker Sent: Friday, December 01, 2006 6:29 PM To: cygwin@cygwin.com Subject: Re: bash scripting problem d2u may also corrupt "text" files that need to have CR in them. This includes bash scripts that need to parse or output CR. -Respon

Re: bash scripting problem

2006-12-04 Thread fergus
>> Is there a utility like a hex editor for cygwin that can check files for the >> "\r" line endings? > od can display the contents of a file (I like 'od -Ax -tcz'). > Or you can use 'file', which detects CRLF line endings in text files. > Or go for broke and use hexl-mode of emacs. Or grep

Re: bash scripting problem

2006-12-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/4/2006 6:37 AM: > Is there a utility like a hex editor for cygwin that can check files for the > "\r" line endings? od can display the contents of a file (I like 'od -Ax -tcz'). Or you can use 'file', which detects CRL

Re: bash scripting problem

2006-12-04 Thread Andrew Louie
Gary R. Van Sickle worldnet.att.net> writes: > Do you have a link to such a script? I don't mean a proof-of-principle; I'm > sure a suitable example can be contrived. What I'm looking for is a shell > script "in the wild" that purposely has a carriage return embedded in it for > reasons other

Re: bash scripting problem

2006-12-02 Thread Will Parsons
> This script is used to preprocess the CSV output of Exceed into an ASCII ^^ Of course, I meant "Excel". - Will -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Doc

Re: bash scripting problem

2006-12-02 Thread Will Parsons
Gary R. Van Sickle wrote: >> From: Rob Walker >> >> d2u may also corrupt "text" files that need to have CR in >> them. This includes bash scripts that need to parse or output CR. >> >> -Rob > > Do you have a link to such a script? I don't mean a proof-of-principle; I'm > sure a suitable exampl

Re: bash scripting problem

2006-12-01 Thread Rob Walker
Gary R. Van Sickle wrote: From: Rob Walker Sent: Friday, December 01, 2006 5:29 PM Subject: Re: bash scripting problem Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/1/2006 3:17 PM: You have DOS line endings in these files. Use

RE: bash scripting problem

2006-12-01 Thread Igor Peshansky
On Fri, 1 Dec 2006, Gary R. Van Sickle wrote: > > From: Rob Walker > > Sent: Friday, December 01, 2006 5:29 PM > > Subject: Re: bash scripting problem > > > > Eric Blake wrote: > > > According to Andrew Louie on 12/1/2006 3:17 PM: > > > > > &

RE: bash scripting problem

2006-12-01 Thread Gary R. Van Sickle
> From: Rob Walker > Sent: Friday, December 01, 2006 5:29 PM > Subject: Re: bash scripting problem > > Eric Blake wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > According to Andrew Louie on 12/1/2006 3:17 PM: > > > >>

Re: bash scripting problem

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/1/2006 3:29 PM: >> Eric Blake byu.net> writes: >> No, only run it on text files (it corrupts binary files, such as *.exe). >> > > Okay, I just re-read that message you originally posted, and there are some > vauge (to

Re: bash scripting problem

2006-12-01 Thread Rob Walker
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/1/2006 3:17 PM: You have DOS line endings in these files. Use 'd2u' to remove them. Thanks! I would have never known that, now, can i run d2u on every file in my installation? N

Re: bash scripting problem

2006-12-01 Thread Andrew Louie
>Eric Blake byu.net> writes: > No, only run it on text files (it corrupts binary files, such as *.exe). > Okay, I just re-read that message you originally posted, and there are some vauge (to me at least) instructions on how to configure bash to auto d2u all scripts that are run. I will try to m

Re: bash scripting problem

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/1/2006 3:17 PM: > >> You have DOS line endings in these files. Use 'd2u' to remove them. >> > > Thanks! I would have never known that, > > now, can i run d2u on every file in my installation? No, only run it on tex

Re: bash scripting problem

2006-12-01 Thread Andrew Louie
Larry Hall (Cygwin cygwin.com> writes: > You have DOS line endings in these files. Use 'd2u' to remove them. > Thanks! I would have never known that, now, can i run d2u on every file in my installation? it seems some scripts call other scripts and then those fail. is it safe to run d2u on e

Re: bash scripting problem

2006-12-01 Thread Larry Hall (Cygwin)
Andrew Louie wrote: while trying to run some configure scripts i get this error: : command not found3: ./configure: line 21: syntax error near unexpected token `elif' '/configure: line 21: `elif test -n "${BASH_VERSION+set}" && (set -o posix)>/dev/null 2>&1; then additional I have written a

Re: bash scripting problem

2006-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andrew Louie on 12/1/2006 2:43 PM: > while trying to run some configure scripts i get this error: > > : command not found3: http://cygwin.com/ml/cygwin-announce/2006-11/msg00065.html You are the victim of DOS line endings on a binary mo

bash scripting problem

2006-12-01 Thread Andrew Louie
while trying to run some configure scripts i get this error: : command not found3: ./configure: line 21: syntax error near unexpected token `elif' '/configure: line 21: `elif test -n "${BASH_VERSION+set}" && (set -o posix)>/dev/null 2>&1; then additional I have written a simple script that con