Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/find add support for '-not': GNU and thus worldly sc...



details:   https://anonhg.NetBSD.org/src/rev/8ac7ce570ba3
branches:  trunk
changeset: 945538:8ac7ce570ba3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Nov 01 05:38:29 2020 +0000

description:
add support for '-not': GNU and thus worldly scripts compatibility.

diffstat:

 usr.bin/find/option.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b94e7355f307 -r 8ac7ce570ba3 usr.bin/find/option.c
--- a/usr.bin/find/option.c     Sun Nov 01 00:24:57 2020 +0000
+++ b/usr.bin/find/option.c     Sun Nov 01 05:38:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: option.c,v 1.27 2016/06/13 00:04:40 pgoyette Exp $     */
+/*     $NetBSD: option.c,v 1.28 2020/11/01 05:38:29 mrg Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "from: @(#)option.c     8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: option.c,v 1.27 2016/06/13 00:04:40 pgoyette Exp $");
+__RCSID("$NetBSD: option.c,v 1.28 2020/11/01 05:38:29 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -126,6 +126,8 @@
  */
 
        { "-nogroup",   N_NOGROUP,      c_nogroup,      0 },
+/* Alias for compatability with Gnu findutils */
+       { "-not",       N_NOT,          c_not,          0 },
        { "-nouser",    N_NOUSER,       c_nouser,       0 },
        { "-o",         N_OR,           c_or,           0 },
        { "-ok",        N_OK,           c_exec,         1 },



Home | Main Index | Thread Index | Old Index