Source-Changes-D archive

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

Re: CVS commit: src/bin/echo



On Tue, May 14, 2024 at 01:32:25 +0000, David H. Gutteridge wrote:

> Log Message:
> echo.1: borrow advice about printf(1) from the OpenBSD man page

Unfortunately that advice is not true without further caveats.

netbsd$ sh -c "printf '-V\n'"
-V

$ busybox sh -c "printf '-V\n'"
-V

ubuntu$ $ dash -c "printf '-V\n'"
dash: 1: printf: Illegal option -V

$ bash -c "printf '-V\n'"
bash: line 1: printf: -V: invalid option
printf: usage: printf [-v var] format [arguments]


-uwe


Home | Main Index | Thread Index | Old Index