On Thu, Feb 13, 2025 at 08:17:45 +0300, Oğuz wrote:
> Changes made to built-in printf have to be adopted by GNU printf, otherwise
> the user will have two flavors of printf on the same system by the same
> name.

On Debian 12, /bin/echo (which is from GNU coreutils) and bash's builtin
echo do not share the same feature set:

hobbit:~$ /bin/echo -e '\u0061'
\u0061
hobbit:~$ echo -e '\u0061'
a

As was pointed out earlier, builtin printf and /usr/bin/printf also
have different features (%(fmt)T being one of them).

Having two different printfs, and two or more different echos, has
ALWAYS been the case on non-GNU-based systems (commercial Unix, BSD,
etc.) where bash is being used.

If the world weren't so narrowly "Windows, Mac and Linux" nowadays,
perhaps people would remember the diversity of operating systems a
little better.

Reply via email to