aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/diff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2024-06-30 15:55:27 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2024-06-30 15:55:27 +0000
commit4ce4a0fe14c455c6ec77452bc99cd93ea45737b1 (patch)
tree77ac798b41fa204bff123c4c0cc60ff0d2fc9769 /usr.bin/diff
parent9738277b5c662a75347efa6a58daea485d30f895 (diff)
Diffstat (limited to 'usr.bin/diff')
-rw-r--r--usr.bin/diff/diff.110
-rw-r--r--usr.bin/diff/diff.c1
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/diff/diff.1 b/usr.bin/diff/diff.1
index 9bc46d07b58a..5f211372e15f 100644
--- a/usr.bin/diff/diff.1
+++ b/usr.bin/diff/diff.1
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 7, 2024
+.Dd June 29, 2024
.Dt DIFF 1
.Os
.Sh NAME
@@ -52,6 +52,7 @@
.Op Fl -ignore-space-change
.Op Fl -initial-tab
.Op Fl -minimal
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -normal
.Op Fl -rcs
@@ -83,6 +84,7 @@
.Op Fl -ignore-space-change
.Op Fl -initial-tab
.Op Fl -minimal
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -normal
.Op Fl -paginate
@@ -110,6 +112,7 @@
.Op Fl -ignore-space-change
.Op Fl -initial-tab
.Op Fl -minimal
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -normal
.Op Fl -paginate
@@ -139,6 +142,7 @@
.Op Fl -ignore-space-change
.Op Fl -initial-tab
.Op Fl -minimal
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -normal
.Op Fl -paginate
@@ -171,6 +175,7 @@
.Op Fl -initial-tab
.Op Fl -minimal
.Op Fl -new-file
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -normal
.Op Fl -paginate
@@ -201,6 +206,7 @@
.Op Fl -ignore-blank-lines
.Op Fl -ignore-case
.Op Fl -minimal
+.Op Fl -no-dereference
.Op Fl -no-ignore-file-name-case
.Op Fl -strip-trailing-cr
.Op Fl -suppress-common-lines
@@ -497,6 +503,8 @@ lines from FILE2
.El
.It Fl -ignore-file-name-case
ignore case when comparing file names
+.It Fl -no-dereference
+do not follow symbolic links
.It Fl -no-ignore-file-name-case
do not ignore case when comparing file names (default)
.It Fl -normal
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index c3fe255a294d..5ca9a36505ce 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -368,7 +368,6 @@ main(int argc, char **argv)
optarg);
break;
case OPT_NO_DEREFERENCE:
- rflag = true;
noderef = true;
break;
case OPT_VERSION: