Glenn Schmottlach
|
QNX - Please update the 'tr' command-line program!
|
Glenn Schmottlach
11/05/2008 1:41 PM
post16012
|
QNX - Please update the 'tr' command-line program!
I've been busy porting several open source packages onto the QNX platform. Several of these packages are autoconf/
automake based which means you run a 'configure' script to generate your Makefiles.
While trying to build the latest glib library for QNX, I ran across this "bug" in the 'tr' command. Apparently, the QNX
version of 'tr' does not support these common character escape codes:
\character
A backslash followed by certain special characters maps to
special values.
\a <alert character>
\b <backspace>
\f <form-feed>
\n <newline>
\r <carriage return>
\t <tab>
\v <vertical tab>
So, when the configure script tries to replace newlines (\n) with a space using a command like
> cat somefile | tr '\n' ' '
it will instead replace every 'n' with a space (' '). This is unexpected and is a source of many errors in automake/
autoconf configure scripts that are used to build open source packages. Whether this is a "bug" or not, most packages
(certainly commonly built under Linux) expect 'tr' to support these escape codes. Would QNX consider supporting this
behavior in a future release?
|
|
|