[Top][All Lists]

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

Re: [PATCH] more ports to Solaris tr, which needs [] around ranges

From: Eric Blake
Subject: Re: [PATCH] more ports to Solaris tr, which needs [] around ranges
Date: Tue, 05 Oct 2010 17:02:35 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/05/2010 04:59 PM, Bruno Haible wrote:
Here the problem is that Solaris 'tr' does not support ranges in POSIX
syntax. The autoconf manual
gives a workaround according to the gnulib philosophy: Use /usr/xpg4/bin/tr
instead of tr from $PATH.

The autoconf manual was just updated today to also document that using [] around range expressions is also a valid workaround. The solution still is POSIX-compliant; it's just that you are transliterating [ and ] to themselves in a working tr.


2010-10-05  Bruno Haible<address@hidden>

        Less intrusive workarounds for Solaris 'tr'.
        * gnulib-tool: Undo last change.
        (TR): New variable.
        (tr): New function.
        * tests/test-pipe-filter-gi1.c (main): Undo last change. Workaround
        already in place since 2009-08-16.
        * tests/test-pipe-filter-ii1.c (main): Likewise.

I'd rather use a simple idiom (always use []) than a more complex idiom (play with PATH to find a more-compliant tr) when both are valid workarounds.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]