help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf $variable inside initial parenthesis or use %s?


From: Chet Ramey
Subject: Re: printf $variable inside initial parenthesis or use %s?
Date: Wed, 11 Jan 2023 09:18:44 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 1/11/23 3:26 AM, Lawrence Velázquez wrote:

My guess, since Bash builtin printf was designed for a drop-in POSIX
replacement for echo

Where did you get that idea?

Not a "drop-in" replacement, but

"The printf utility can be used portably to emulate any of the traditional
behaviors of the echo utility as follows (assuming that IFS has its
standard value or is unset)"

from

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]