bug#29946: no -A argument for 'tr' generates an error message whenever the AIX command "lslpp -L" is used (AIX 6.1 and later).

2018-01-02 Thread Paul Eggert
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

bug#29946: no -A argument for 'tr' generates an error message whenever the AIX command "lslpp -L" is used (AIX 6.1 and later).

2018-01-02 Thread Michael
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

bug#29946: no -A argument for 'tr' generates an error message whenever the AIX command "lslpp -L" is used (AIX 6.1 and later).

2018-01-02 Thread Paul Eggert
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

bug#29946: no -A argument for 'tr' generates an error message whenever the AIX command "lslpp -L" is used (AIX 6.1 and later).

2018-01-02 Thread Pádraig Brady
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.

bug#29946: no -A argument for 'tr' generates an error message whenever the AIX command "lslpp -L" is used (AIX 6.1 and later).

2018-01-02 Thread Michael
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