Re: zsh and line breaks

2004-04-07 Thread Peter A. Castro
On Wed, 7 Apr 2004, Clint Adams wrote: > > Maybe so, but that's the only form which works for the Cygwin version of > > texi2html :/ > > Cygwin might want to upgrade. texi2html is switching to GNU-style long > options (e.g. --expand) too. "That's not my department" said Wernher Von Braun :-} Se

Re: zsh and line breaks

2004-04-07 Thread Corinna Vinschen
On Apr 7 13:35, Peter A. Castro wrote: > On Wed, 7 Apr 2004, Corinna Vinschen wrote: > > On Apr 6 14:59, Peter A. Castro wrote: > > > Oh, btw, I'm all for having a textreadmode.o object file available. I > > > also think this, and the other *mode.o object files should be outlined in > > > the Cy

Re: zsh and line breaks

2004-04-07 Thread Peter A. Castro
On Wed, 7 Apr 2004, Corinna Vinschen wrote: > On Apr 6 14:59, Peter A. Castro wrote: > > Oh, btw, I'm all for having a textreadmode.o object file available. I > > also think this, and the other *mode.o object files should be outlined in > > the Cygwin porting guide :) > > Gosh, that's documentat

Re: zsh and line breaks

2004-04-07 Thread Corinna Vinschen
On Apr 6 14:59, Peter A. Castro wrote: > Oh, btw, I'm all for having a textreadmode.o object file available. I > also think this, and the other *mode.o object files should be outlined in > the Cygwin porting guide :) Gosh, that's documentation. PGA, definitely! Corinna -- Corinna Vinschen

Re: zsh and line breaks

2004-04-06 Thread Peter A. Castro
On Tue, 6 Apr 2004, Corinna Vinschen wrote: > On Apr 6 13:54, Dave Korn wrote: > > > case "$host" in > > > *-*-cygwin*) > > > LIBS="$LIBS /usr/lib/textreadmode.o";; > > > esac > > > > > > in configure.ac would do it then. > > > > You could take it one step further: combine that with u

Re: zsh and line breaks

2004-04-06 Thread Corinna Vinschen
On Apr 6 10:38, Corinna Vinschen wrote: > I'm wondering if it makes sense to add a "/usr/lib/textreadmode.o" to > Cygwin, so that applications like zsh and gawk don't have to have this > code to provide by themselves. A simple > > case "$host" in > *-*-cygwin*) > LIBS="$LIBS /usr/lib/te

RE: zsh and line breaks

2004-04-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Corinna Vinschen > Sent: 06 April 2004 14:49 > On Apr 6 13:54, Dave Korn wrote: > > > case "$host" in > > > *-*-cygwin*) > > > LIBS="$LIBS /usr/lib/textreadmode.o";; > > > esac > > > > > > in configure.ac would do it then.

Re: zsh and line breaks

2004-04-06 Thread Corinna Vinschen
On Apr 6 13:54, Dave Korn wrote: > > case "$host" in > > *-*-cygwin*) > > LIBS="$LIBS /usr/lib/textreadmode.o";; > > esac > > > > in configure.ac would do it then. > > > You could take it one step further: combine that with using the --wrap > option to ld > >case "$host" in >

RE: zsh and line breaks

2004-04-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Corinna Vinschen > Sent: 06 April 2004 09:38 > On Apr 4 20:29, Peter Stephenson wrote: > > Bart Schaefer wrote: > > > On Apr 2, 5:23pm, Peter A. Castro wrote: > > > } > > > } On Thu, 1 Apr 2004, Peter A. Castro wrote: > > > } > > >

Re: zsh and line breaks

2004-04-06 Thread Corinna Vinschen
On Apr 4 20:29, Peter Stephenson wrote: > Bart Schaefer wrote: > > On Apr 2, 5:23pm, Peter A. Castro wrote: > > } > > } On Thu, 1 Apr 2004, Peter A. Castro wrote: > > } > > } So, now I need a ruling on just where to put this fix. > > > > I don't know that I can give you a "ruling" but in my opi

Re: zsh and line breaks

2004-04-04 Thread Peter Stephenson
Bart Schaefer wrote: > On Apr 2, 5:23pm, Peter A. Castro wrote: > } > } On Thu, 1 Apr 2004, Peter A. Castro wrote: > } > } So, now I need a ruling on just where to put this fix. > > I don't know that I can give you a "ruling" but in my opinion it would be > fine to put this in main.c, appropriat

Re: zsh and line breaks

2004-04-02 Thread Peter A. Castro
On Thu, 1 Apr 2004, Peter A. Castro wrote: > On Thu, 1 Apr 2004, Oliver Kiddle wrote: > > Warning: this is long!! Well, this time it's short!! :) > > "Peter A. Castro" wrote: > > > > It is easy for us to add `#ifdef __CYGWIN__' around changes or #define > > > > O_TEXT to zero on other systems so

RE: zsh and line breaks

2004-04-02 Thread Peter A. Castro
On Fri, 2 Apr 2004, Dave Korn wrote: Hi Dave, > > -Original Message- > > From: cygwin-owner On Behalf Of Peter A. Castro > > Sent: 01 April 2004 22:21 > > > In system.h I've added a #define in the #ifdef > > __CYGWIN__ section of: > > #define ORO_TEXT | O_TEXT > > And for the #else case

Re: zsh and line breaks

2004-04-02 Thread Peter A. Castro
On Fri, 2 Apr 2004, Corinna Vinschen wrote: > On Apr 1 15:11, Peter A. Castro wrote: > > On Thu, 1 Apr 2004, Igor Pechtchanski wrote: > > > I thought that that was what linking with automode.o did... > > > > Hmmm... I'm not sure it'll help. Doesn't automode open for read in text > > mode but ope

RE: zsh and line breaks

2004-04-02 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Peter A. Castro > Sent: 01 April 2004 22:21 > In system.h I've added a #define in the #ifdef > __CYGWIN__ section of: > #define ORO_TEXT | O_TEXT > And for the #else case: > #define ORO_TEXT > > Then in code which needs it I have m

Re: zsh and line breaks

2004-04-01 Thread Corinna Vinschen
On Apr 1 15:11, Peter A. Castro wrote: > On Thu, 1 Apr 2004, Igor Pechtchanski wrote: > > I thought that that was what linking with automode.o did... > > Hmmm... I'm not sure it'll help. Doesn't automode open for read in text > mode but open for write in binmode always (correct me if I'm wrong)?

Re: zsh and line breaks

2004-04-01 Thread Peter A. Castro
On Thu, 1 Apr 2004, Igor Pechtchanski wrote: > On Thu, 1 Apr 2004, Peter A. Castro wrote: > > On Thu, 1 Apr 2004, Oliver Kiddle wrote: > > > > > "Peter A. Castro" wrote: > > > > > It is easy for us to add `#ifdef __CYGWIN__' around changes or #define > > > > > O_TEXT to zero on other systems so if

Re: zsh and line breaks

2004-04-01 Thread Igor Pechtchanski
On Thu, 1 Apr 2004, Peter A. Castro wrote: > On Thu, 1 Apr 2004, Oliver Kiddle wrote: > > > "Peter A. Castro" wrote: > > > > It is easy for us to add `#ifdef __CYGWIN__' around changes or #define > > > > O_TEXT to zero on other systems so if you do correct the problem, > > > > please send the chan

Re: zsh and line breaks

2004-04-01 Thread Peter A. Castro
On Thu, 1 Apr 2004, Oliver Kiddle wrote: Warning: this is long!! > "Peter A. Castro" wrote: > > > It is easy for us to add `#ifdef __CYGWIN__' around changes or #define > > > O_TEXT to zero on other systems so if you do correct the problem, > > > please send the changes back to us. > > > > There

Re: zsh and line breaks

2004-04-01 Thread Oliver Kiddle
"Peter A. Castro" wrote: > > It is easy for us to add `#ifdef __CYGWIN__' around changes or #define > > O_TEXT to zero on other systems so if you do correct the problem, > > please send the changes back to us. > > There are about 43 open() calls which I've updated with the O_TEXT > option. Having

Re: zsh and line breaks

2004-03-31 Thread Peter A. Castro
On Wed, 31 Mar 2004, Oliver Kiddle wrote: > "Peter A. Castro" wrote: > > > Are those corrections likely to be limited to the Cygwin package for > > > zsh? > > > > Yes. Currently, my changes are Cygwin specific and really don't apply to > > the other platforms. > > It is easy for us to add `#ifdef

Re: zsh and line breaks

2004-03-31 Thread Oliver Kiddle
"Peter A. Castro" wrote: > > Are those corrections likely to be limited to the Cygwin package for > > zsh? > > Yes. Currently, my changes are Cygwin specific and really don't apply to > the other platforms. It is easy for us to add `#ifdef __CYGWIN__' around changes or #define O_TEXT to zero on

Re: zsh and line breaks

2004-03-30 Thread Peter A. Castro
On Tue, 30 Mar 2004, Oliver Kiddle wrote: > "Peter A. Castro" wrote: > > > I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos > > > returns. I have to run dos2unix on my zsh scripts. > > > > > > I haven't seen an explanation for this > > Hmm... I'll have to look into this. I thou

Re: zsh and line breaks

2004-03-30 Thread Peter A. Castro
On Tue, 30 Mar 2004, zzapper wrote: > On Mon, 29 Mar 2004 14:46:15 -0800 (PST), wrote: > > >On Mon, 29 Mar 2004, zzapper wrote: > > > >> On Wed, 24 Mar 2004 18:16:00 +0100, wrote: > >> > >> >I'm having some trouble with zsh (4.0.6) and line breaks. It seems that > >> >it does not accept "\n" as

Re: zsh and line breaks

2004-03-30 Thread Oliver Kiddle
"Peter A. Castro" wrote: > > I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos > > returns. I have to run dos2unix on my zsh scripts. > > > > I haven't seen an explanation for this > > Hmm... I'll have to look into this. I thought I'd corrected this for > Cygwin... Are those co

Re: zsh and line breaks

2004-03-29 Thread Peter A. Castro
On Mon, 29 Mar 2004, zzapper wrote: > On Wed, 24 Mar 2004 18:16:00 +0100, wrote: > > >I'm having some trouble with zsh (4.0.6) and line breaks. It seems that > >it does not accept "\n" as a line break. This results in some > >uncomfortableness when using it as a login shell, such as this output >