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

Portability problem in rtems custom cfg's




On Tue, 10 Aug 1999, Ralf Corsepius wrote:

> * Seding out any non-printable characters is highly sensitive to
> portablity issues and should be avoided (I.e. using sed to filter out
> \r is questionable in general)
> 
> * A portable sed pattern would be something similar to
> 's/\([0-9A-Za-z]*\)/\1/', but this would be useless for filtering out
> \r if sed is expanding \n to \r\n on output => Given sed's behavior on
> Cygwin is correct (which I doubt :-), RTEMS's attempts to filter out
> \r are basically broken and can't be worked around by any sed pattern.

This is the bottom line answer I was looking for. :)

What about using tr to remove the '\r'?  Wouldn't that be portable?

--joel