OK, attached is a proposed patch to coreutils. Michael, can you give it a try?
>From f1e79ca48f6e4cb6ebb4ecf1a4c541a84afdf1a8 Mon Sep 17 00:00:00 2001
From: Paul Eggert
Date: Tue, 2 Jan 2018 20:14:55 -0800
Subject: [PATCH] tr: add -A, for compatibility with AIX tr
Problem
1). AIX 5.3 (/usr/bin/tr) as an argument (-A) that was not used by the
command 'lslpp', so the message does not occur:
root@x064:[/home/prj/gnu/coreutils-8.29]/usr/bin/tr -A
tr: 0653-712 The combination of options and String parameters is not legal.
Usage: tr [ -[c|C] | -[c|C]ds | -[c|C]s | -ds
Pádraig Brady wrote:
This is non standard.
So I suggest lslpp hardcodes /usr/bin/tr
or better again uses LC_ALL, LC_COLLATE=C etc.
to enforce working in ASCII mode.
lslpp is AIX-specific, so it can assume AIX-specific extensions to tr.
How about if we make 'tr -A' compatible with AIX
On 02/01/18 16:32, Michael wrote:
> 1). AIX 5.3 (/usr/bin/tr) as an argument (-A) that was not used by the
> command 'lslpp', so the message does not occur:
>
> root@x064:[/home/prj/gnu/coreutils-8.29]/usr/bin/tr -A
> tr: 0653-712 The combination of options and String parameters is not legal.
On 02/01/2018 20:40, Paul Eggert wrote:
Pádraig Brady wrote:
This is non standard.
So I suggest lslpp hardcodes /usr/bin/tr
or better again uses LC_ALL, LC_COLLATE=C etc.
to enforce working in ASCII mode.
I am just a messenger.
lslpp is AIX-specific, so it can assume AIX-specific extensions