diff options
author | Elliott Hughes <enh@google.com> | 2019-01-12 09:04:48 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-12 13:24:43 -0600 |
commit | 41b5019a2052f24ccb4f729bfcbfe3c1d082366e (patch) | |
tree | 11f1927afd600c3ee39c91dde0c3451def497751 /toys/posix | |
parent | 1f0cfeef3ca3421ca6dc4b1fdbd6aa3bc3087302 (diff) | |
download | toybox-41b5019a2052f24ccb4f729bfcbfe3c1d082366e.tar.gz |
patch: add -s to the synopsis line and fix typos.
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/patch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toys/posix/patch.c b/toys/posix/patch.c index 0241784b..f12f9183 100644 --- a/toys/posix/patch.c +++ b/toys/posix/patch.c @@ -24,12 +24,12 @@ config PATCH bool "patch" default y help - usage: patch [-d DIR] [-i file] [-p depth] [-Rlu] [--dry-run] + usage: patch [-d DIR] [-i file] [-p depth] [-Rlsu] [--dry-run] Apply a unified diff to one or more files. -d Modify files in DIR - -i Input file (defaults=stdin) + -i Input file (default=stdin) -l Loose match (ignore whitespace) -p Number of '/' to strip from start of file paths (default=all) -R Reverse patch @@ -38,8 +38,8 @@ config PATCH --dry-run Don't change files, just confirm patch applies This version of patch only handles unified diffs, and only modifies - a file when all all hunks to that file apply. Patch prints failed - hunks to stderr, and exits with nonzero status if any hunks fail. + a file when all hunks to that file apply. Patch prints failed hunks + to stderr, and exits with nonzero status if any hunks fail. A file compared against /dev/null (or with a date <= the epoch) is created/deleted as appropriate. |