[Toybox] [PATCH] patch: support GNU-style [FILE [PATCH]] arguments.

enh enh at google.com
Fri Dec 20 10:48:02 PST 2019


POSIX only mentions -i/stdin, but GNU patch -- and Larry Wall's patch 1.3,
found via https://en.wikipedia.org/wiki/Patch_(Unix) -- also support
supplying the name of the file to patch and the name of the patch file
as optional arguments.

The AOSP build makes use of this syntax to patch snakeyaml to remove
references to java.beans.* stuff.
---
 toys/posix/patch.c | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-patch-support-GNU-style-FILE-PATCH-arguments.patch
Type: text/x-patch
Size: 3193 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191220/3141b914/attachment.bin>


More information about the Toybox mailing list