summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-05 19:20:11 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-05 19:20:36 -0800
commit2c9d956aacdfddbb87334c985cd995d75102f789 (patch)
treec042cc0763e423b51a955c39d6011306613df970 /doc
parent1104d026514014808629f28f2e6c787bf3c520c4 (diff)
downloaddiffutils-2c9d956aacdfddbb87334c985cd995d75102f789.tar.gz
diff: remove unportable ‘diff -N - f <&-’ feature
* NEWS: Mention this. * bootstrap.conf (gnulib_modules): Add stdopen. * doc/diffutils.texi (Comparing Directories): Do not document behavior if stdin is closed. * src/diff.c: Include stdopen.h. (main): Call stdopen early. (compare_files) [__hpux]: Remove recently-introduced special case for HP-UX exec with stdin closed. * tests/new-file: Remove tests of the removed feature.
Diffstat (limited to 'doc')
-rw-r--r--doc/diffutils.texi3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/diffutils.texi b/doc/diffutils.texi
index 42d3abd..3a780db 100644
--- a/doc/diffutils.texi
+++ b/doc/diffutils.texi
@@ -1796,8 +1796,7 @@ second position.) To do this, use the @option{--new-file}
(@option{-N}) option. This option affects command-line arguments as
well as files found via directory traversal; for example, @samp{diff
-N a b} treats @file{a} as empty if @file{a} does not exist but
-@file{b} does, and similarly @samp{diff -N - b} treats standard input
-as empty if it is closed but @file{b} exists.
+@file{b} does.
If the older directory contains large files that are not in
the newer directory, you can make the patch smaller by using the