* Getting rid of the CR
@ 1999-12-02 12:23 Andre Oliveira da Costa
1999-12-31 13:28 ` Andre Oliveira da Costa
0 siblings, 1 reply; 6+ messages in thread
From: Andre Oliveira da Costa @ 1999-12-02 12:23 UTC (permalink / raw)
To: Cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
Hi,
at the risk of asking something really stupid, I'll throw this one:
The scenario: all my include (.h) files were in DOS format (don't ask me
why... maybe because my first installation of B20.1 mounted / as textmode),
and this was confusing gcc's preprocessor. All my mounts are binary now. My
first approach to solve this was this small bash script:
#!/bin/sh
ex $1 << EOF
set ff=unix
wq
EOF
(the 'ex' program I'm using is a link to vim 5.5, which is able to convert
DOS-->UNIX by simply setting the appropriate file type)
The script runs without complaints, but doesn't work =T (i.e. the files
remain in DOS mode) The point is: if I do the same ex editing on the command
line:
ex some-file
set ff=unix
wq
it works -- the file is overwritten in UNIX format. Any hint why it doesn't
work on my here document?
BTW: After some useless fight, I modified the script to use 'tr', which gets
the job done as well, but forces me to use a temporary file...
TIA,
Andre
--
André Oliveira da Costa
(costa@cade.com.br)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Getting rid of the CR
1999-12-02 12:23 Getting rid of the CR Andre Oliveira da Costa
@ 1999-12-31 13:28 ` Andre Oliveira da Costa
0 siblings, 0 replies; 6+ messages in thread
From: Andre Oliveira da Costa @ 1999-12-31 13:28 UTC (permalink / raw)
To: Cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
Hi,
at the risk of asking something really stupid, I'll throw this one:
The scenario: all my include (.h) files were in DOS format (don't ask me
why... maybe because my first installation of B20.1 mounted / as textmode),
and this was confusing gcc's preprocessor. All my mounts are binary now. My
first approach to solve this was this small bash script:
#!/bin/sh
ex $1 << EOF
set ff=unix
wq
EOF
(the 'ex' program I'm using is a link to vim 5.5, which is able to convert
DOS-->UNIX by simply setting the appropriate file type)
The script runs without complaints, but doesn't work =T (i.e. the files
remain in DOS mode) The point is: if I do the same ex editing on the command
line:
ex some-file
set ff=unix
wq
it works -- the file is overwritten in UNIX format. Any hint why it doesn't
work on my here document?
BTW: After some useless fight, I modified the script to use 'tr', which gets
the job done as well, but forces me to use a temporary file...
TIA,
Andre
--
André Oliveira da Costa
(costa@cade.com.br)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Getting rid of the CR
1999-12-02 14:06 ` Andre Oliveira da Costa
@ 1999-12-31 13:28 ` Andre Oliveira da Costa
0 siblings, 0 replies; 6+ messages in thread
From: Andre Oliveira da Costa @ 1999-12-31 13:28 UTC (permalink / raw)
To: Cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
> Not asking would be stupid.
I thought that too ;)
> What does you CYGWIN variable look like? What version of the
> cygwin dll are
> you using? (`uname -a')
My CYGWIN is:
notitle binmode glob ntea ntsec
uname -a:
CYGWIN_NT-4.0 COSTA 22.0(0.16/3/2) 1999-11-23 09:38:16 i586 unknown
(it corresponds to B20.1 patched with 19991122 snapshot)
> So? You use a temporary file either way. It's just that one you
> have to use
> manually while the other is created behind the scenes.
Ok, technically, you're right. Let's just say I'd like to understand why the
different behavior ;)
Best regards,
Andre
--
André Oliveira da Costa
(costa@cade.com.br)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting rid of the CR
1999-12-02 13:58 Earnie Boyd
1999-12-02 14:06 ` Andre Oliveira da Costa
@ 1999-12-31 13:28 ` Earnie Boyd
1 sibling, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-12-31 13:28 UTC (permalink / raw)
To: Andre Oliveira da Costa, Cygwin
--- Andre Oliveira da Costa <costa@cade.com.br> wrote:
> Hi,
>
> at the risk of asking something really stupid, I'll throw this one:
>
-8<-
Not asking would be stupid.
-8<-
> it works -- the file is overwritten in UNIX format. Any hint why it doesn't
> work on my here document?
-8<-
What does you CYGWIN variable look like? What version of the cygwin dll are
you using? (`uname -a')
-8<-
>
> BTW: After some useless fight, I modified the script to use 'tr', which gets
> the job done as well, but forces me to use a temporary file...
>
-8<-
So? You use a temporary file either way. It's just that one you have to use
manually while the other is created behind the scenes.
=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Getting rid of the CR
1999-12-02 13:58 Earnie Boyd
@ 1999-12-02 14:06 ` Andre Oliveira da Costa
1999-12-31 13:28 ` Andre Oliveira da Costa
1999-12-31 13:28 ` Earnie Boyd
1 sibling, 1 reply; 6+ messages in thread
From: Andre Oliveira da Costa @ 1999-12-02 14:06 UTC (permalink / raw)
To: Cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
> Not asking would be stupid.
I thought that too ;)
> What does you CYGWIN variable look like? What version of the
> cygwin dll are
> you using? (`uname -a')
My CYGWIN is:
notitle binmode glob ntea ntsec
uname -a:
CYGWIN_NT-4.0 COSTA 22.0(0.16/3/2) 1999-11-23 09:38:16 i586 unknown
(it corresponds to B20.1 patched with 19991122 snapshot)
> So? You use a temporary file either way. It's just that one you
> have to use
> manually while the other is created behind the scenes.
Ok, technically, you're right. Let's just say I'd like to understand why the
different behavior ;)
Best regards,
Andre
--
André Oliveira da Costa
(costa@cade.com.br)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting rid of the CR
@ 1999-12-02 13:58 Earnie Boyd
1999-12-02 14:06 ` Andre Oliveira da Costa
1999-12-31 13:28 ` Earnie Boyd
0 siblings, 2 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-12-02 13:58 UTC (permalink / raw)
To: Andre Oliveira da Costa, Cygwin
--- Andre Oliveira da Costa <costa@cade.com.br> wrote:
> Hi,
>
> at the risk of asking something really stupid, I'll throw this one:
>
-8<-
Not asking would be stupid.
-8<-
> it works -- the file is overwritten in UNIX format. Any hint why it doesn't
> work on my here document?
-8<-
What does you CYGWIN variable look like? What version of the cygwin dll are
you using? (`uname -a')
-8<-
>
> BTW: After some useless fight, I modified the script to use 'tr', which gets
> the job done as well, but forces me to use a temporary file...
>
-8<-
So? You use a temporary file either way. It's just that one you have to use
manually while the other is created behind the scenes.
=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-12-31 13:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-02 12:23 Getting rid of the CR Andre Oliveira da Costa
1999-12-31 13:28 ` Andre Oliveira da Costa
1999-12-02 13:58 Earnie Boyd
1999-12-02 14:06 ` Andre Oliveira da Costa
1999-12-31 13:28 ` Andre Oliveira da Costa
1999-12-31 13:28 ` Earnie Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).