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 2 months 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 2 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 89af4c7b28b4436849bcbafbdebd243918ee0969 Author: Andy Fiddaman <firstname.lastname@example.org> Date: 2021-03-25T20:24:46.000Z 13661 printf builtin should ignore leading -- Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Dominik Hassler <firstname.lastname@example.org> Approved by: Rich Lowe <email@example.com>