tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: /usr/bin/printf(1) not POSIX.2 compliant
On Sun, Jul 21, 2019 at 10:31:18PM +0700, Robert Elz wrote:
> Date: Sun, 21 Jul 2019 16:15:05 +0200
> From: tlaronde%polynum.com@localhost
> Message-ID: <20190721141505.GA4079%polynum.com@localhost>
>
> | For safety, in my scripts, I simply circumvent by a
> | leading "%c" or "\055"
>
> I'd suggest %s (with a '' arg) (even %.0s to make it blatant)
> as a clearer way to show what is happening
>
> printf %s---\\n ''
You are right: the whole result is clearer than "deporting" a dash as
an argument. I will follow this pattern.
Best regards,
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
Home |
Main Index |
Thread Index |
Old Index