Re: [PATCH] pre-commit.sample: don't use [...] around a tr range
- From
- Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
- Date
- Sep 21, 2009, 15:58 UTC
- Message-ID
- <n2z47RdNjxVbPeRfgJuY54nJrfzDfn43bzv8HoH6cEuAzQ6fB1MaBg@cipher.nrlssc.navy.mil>
- In-Reply-To
- <20090921134427.GA20567@sigio.peff.net>
Jeff King wrote:
Show 16 quoted lines
> On Mon, Sep 21, 2009 at 01:00:34PM +0200, Jim Meyering wrote: > >>> We have (had?) people trying to support Git on HP-UX and SunOS. >>> Do these count? >> I had my doubts, but have just confirmed that Solaris 10's >> /usr/bin/tr is still doing it the SYSV way: >> >> $ echo foo | LC_ALL=C /usr/bin/tr a-z A-Z >> foo >> >> There, you have to use /usr/xpg4/bin/tr to get the expected behavior: >> >> $ echo foo | LC_ALL=C /usr/xpg4/bin/tr a-z A-Z >> FOO >> >> So you're right. Thanks!
By the way, modern git inserts /usr/xpg4/bin into PATH before /usr/bin on Solaris. So /usr/xpg4/bin/tr should always be used on that platform.
-brandon