[PATCH] Make symlink-mesa.sh Bourne compatible
WHarms at bfs.de
Sat Mar 8 14:54:12 PST 2008
Dan Nicholson wrote:
> On Sat, Mar 8, 2008 at 1:21 PM, Joerg Sonnenberger
> <joerg at britannica.bec.de> wrote:
>> On Sat, Mar 08, 2008 at 01:06:39PM -0800, Dan Nicholson wrote:
>> > Not exactly a ringing endorsement for portability. You still haven't
>> > said what's wrong with using the portable autoconf way.
>> I don't think it is more portable. I strongly think that is obscure.
>> I know that printf works as intended on Solaris, HP-UX, IRIX, AIX and
>> any post-4.4BSD. Does that leave any platform of relevance?
> The $ECHO_N, $ECHO_C method is used on _every_ autoconf generated
> configure script. Take a look. What's receives wider testing than
> that? So, somehow in the middle of running configure, this method will
> start to fail?
i think you try to solve a problem that has no proper solution. Writing a
script that circumvents all bugs on different sh implementation will be hard at least.
1. Does ignoring '-n' have any serious problems ? If solaris/AIX/xyz produces a not so nice
output, who cares ???
2. If you need that feature:
The most easy way is to provide an simple echo cmd for systems that have a broken echo support,
next best provide your own shell (busybox comes to my mind).
just my 2 cents,
More information about the xorg