[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] stdio write problem in mintlib



On Sun, Dec 30, 2007 at 10:30:05AM +0100, Andreas Schwab wrote:
> Alan Hourihane <alanh@fairlite.demon.co.uk> writes:
> 
> > But when outputting via no tty like this...
> >
> > export TEST=`./main`
> >
> > You get 
> >
> > "EST="a
> >
> > Notice that the linefeed has continued on and inserted into the
> > environment variable which is incorrect.
> 
> Not the LF '\n', but the CR '\r'.  This is the correct operation.

Sorry, yes, CR.

But how can it be correct when doing ...

export MACH=`uname -s`

and you get...

"ACH="FreeMiNT

and some scripts can't determine the machine type.

whereas on Linux it works fine.

Alan.