Re: stumped on a simple autoconf/m4/sh problem

"G. Branden Robinson" <[email protected]> Mon, 2 Dec 2024 14:26:41 -0600
Newsgroups gmane.comp.sysutils.autoconf.general,gmane.comp.printing.groff.general
Message-ID <20241202202641.qups4kauurq2t3jr@illithid>
Hi Paul,

At 2024-12-02T11:45:30-0800, Paul Eggert wrote:
> On 2024-12-01 19:03, G. Branden Robinson wrote:
> > The problem is that the test exercising `$cmd` succeeds on Solaris
> > 10 when it should not.
> 
> Why shouldn't the test succeed? Solaris 10 /usr/bin/tr supports
> character classes like [:cntrl:].

It doesn't for me in the instance at gcc210.fsffrance.org.

But it did occur to me that the '[ *]' argument might have been the
problem.  Here are my experiments.

bash-3.2$ type tr
tr is /usr/bin/tr
bash-3.2$ echo abc | tr 'ab' '[ *]'
  c
bash-3.2$ echo abc | tr '[:cntrl:]' '[ *]'
Bad string
bash-3.2$ what /usr/bin/tr
bash: what: command not found
bash-3.2$ ident /usr/bin/tr
bash: ident: command not found
bash-3.2$ tr -v
tr: illegal option -- v
Usage: tr [ -cds ] [ String1 [ String2 ] ]

I love these environments where you can't get a command to identify
its own provenance.  Must be "unpublished proprietary source code of
AT&T".  :-|

Regards,
Branden
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmdOF/kACgkQ0Z6cfXEm
bc6p2hAAo+briLfjS8TkgOj4Z3TlYjoxDMf2thyxdCo6eUTfIyTrjuKbcp2Fz5pE
v0E5YBvkqywkpcBmqleF+eEulDCL165yO6f4WWQoQpbf3zyz+6xxFTMjv0Oi9vF1
lmAB7FQl0pAOtAxtkWY5dPXUnoBf/I7/pJHmPetOiw0aFIEZsCSlVIOS0UO2oGbk
qL3zxMEoXmhJfmq/sLRiVJdy0BpIAqTJzyZ9QRaNRZ7BgBPfptgv+B7+IHNUO9hO
OJpP9mqMcB8Fdg6L0ZIpuFqp30XWnXD4Q21tYE+mPkVISCXbzj1vNy2rFD4rdb+t
SVH/KpPMG6GQilBA5bmTdSq4Dyb//ZCTGT+MDIdVmsBLaar6h9W8AnOKy3K/8JRe
On0JgmvaxDobLLo8z90wy8+8MMm9953V8JigQwbL1zizk0lbH+27baSjl+BDx7XV
EqztH0fmcnRUFhJvbzR1VWQW7Ii4yLnlNK8E4uzi/gxreDj104cC6RMRggIaiN7I
TxxbJ1hFhLY7Goh2TdsPUylAgDmP7TH4Uq4/jrOnGqM9Yw2uO2K8JaHyybwl3iYT
3eEAjRG0nxuhu7lEZTkFwi404ZiapytH6f+kzdUlLdtyNzem7lqeOgDlaFxNzJbG
M26O2t+n2WmVZ8tQDCZyz9nByTW+Q66oQE8bCQSuKLkqIZb8HVI=
=jve7
-----END PGP SIGNATURE-----