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

Re: [MiNT] stdio write problem in mintlib



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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."