diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-16 16:58:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-16 16:58:29 +0200 |
commit | fa40ad5ebd952cb1b76465e966d00908148878c0 (patch) | |
tree | 7e003d9265396dcbfa864cb413f0dd1264535624 /doc | |
parent | cc0ccfa5ccbecec228f3e6754b49eeafebcc2807 (diff) |
Specify diff pseudo-builtin in testscript doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testscript.cli | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli index b685e1d..754a24a 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -2176,6 +2176,20 @@ Read files in order and write their contents to \c{stdout}. Read from \c{stdin} if no file is specified or \c{-} is specified as a file name. +\h#builtins-diff|\c{diff}| + +\ +diff [-u] [-U <num>] <file1> <file2> +\ + +Compare the contents of \i{file1} and \i{file2}. + +The \c{diff} utility is not a builtin. Instead, the test platform is expected +to provide a (reasonably) POSIX-compatible implementation. It should at least +supports the \c{-u} and \c{-U} options. On Windows GNU \c{diff} can be +assumed (provided as part of the \c{build2} toolchain). + + \h#builtins-echo|\c{echo}| \ |