printf builtin should ignore leading --
Even though printf does not support option flags, POSIX requires that it ignores any leading
--, and it currently does not.
af@bloody:/usr/demo/ksh/tests$ builtin printf af@bloody:/usr/demo/ksh/tests$ printf -e -e af@bloody:/usr/demo/ksh/tests$ printf -- -e -- af@bloody:/usr/demo/ksh/tests$ printf -- bar --
Updated by Andy Fiddaman about 1 year ago
Tested using the
builtin test program before and after the change, which showed failures before and none after.
Re-ran the whole set of ksh tests and otherwise the before and after output was unchanged.
With a patched system, I can now build openjdk8 successfully where it failed before.
Updated by Electric Monk about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 89af4c7b28b4436849bcbafbdebd243918ee0969 Author: Andy Fiddaman <email@example.com> Date: 2021-03-25T20:24:46.000Z 13661 printf builtin should ignore leading -- Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Dominik Hassler <email@example.com> Approved by: Rich Lowe <firstname.lastname@example.org>