[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 06/19] Avoid false positives for the sc_prohi
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH 06/19] Avoid false positives for the sc_prohibit_test_minus_ao syntax check. |
Date: |
Fri, 2 Apr 2010 23:47:06 +0100 |
* doc/find.texi (Updating A Timestamp File): Work around a syntax
check designed to prevent the use of "test X -a Y".
* find/find.1: Likewise.
Signed-off-by: James Youngman <address@hidden>
---
ChangeLog | 5 +++++
cfg.mk | 2 +-
doc/find.texi | 6 +++---
find/find.1 | 2 +-
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 93ec286..9abbc98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-04-02 James Youngman <address@hidden>
+ Avoid false positives for the sc_prohibit_test_minus_ao syntax check.
+ * doc/find.texi (Updating A Timestamp File): Work around a syntax
+ check designed to prevent the use of "test X -a Y".
+ * find/find.1: Likewise.
+
* find/ftsfind.c: We don't use anything from xalloc.h, so don't
#include it.
diff --git a/cfg.mk b/cfg.mk
index 73186fd..17550c9 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -25,7 +25,7 @@ skip_dunno = sc_immutable_NEWS sc_makefile_at_at_check \
# Understand, but fix later.
skip_defer = sc_program_name sc_prohibit_atoi_atof \
sc_prohibit_magic_number_exit sc_prohibit_stat_st_blocks \
- sc_prohibit_strcmp sc_prohibit_test_minus_ao
+ sc_prohibit_strcmp
# False positives I don't have a workaround for yet.
# sc_space_tab: several .xo test output files contain this sequence
diff --git a/doc/find.texi b/doc/find.texi
index b19ce43..e4e636b 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -4543,8 +4543,8 @@ We can of course still use @samp{-newer} to cut down on
the number of
calls to @code{test}:
@smallexample
-find subdir -newer timestamp -a \
- -exec test @address@hidden -nt timestamp \; -a \
+find subdir -newer timestamp -and \
+ -exec test @address@hidden -nt timestamp \; -and \
-exec touch -r @address@hidden timestamp \;
@end smallexample
@@ -4683,7 +4683,7 @@ searching subdirectories inside projects whose SCM
directory we
already found.
@smallexample
-find repo/ -exec test -d @address@hidden/.svn -o -d @address@hidden/.git -o -d
@address@hidden/CVS \; -print -prune
+find repo/ -exec test -d @address@hidden/.svn -or -d @address@hidden/.git -or
-d @address@hidden/CVS \; -print -prune
@end smallexample
In this example, @command{test} is used to tell if we are currently
diff --git a/find/find.1 b/find/find.1
index 94137a9..eef055b 100644
--- a/find/find.1
+++ b/find/find.1
@@ -1977,7 +1977,7 @@ what is going on.
.P
.nf
-.B find repo/ -exec test -d {}/.svn -o -d {}/.git -o -d {}/CVS \; \e
+.B find repo/ -exec test -d {}/.svn -or -d {}/.git -or -d {}/CVS \; \e
.B -print -prune
.fi
--
1.7.0
- [Findutils-patches] [PATCH 01/19] Mark some missed error messages for translation., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 02/19] * cfg.mk: Explain that we cannot enable the sc_texinfo_acronym syntax check right now, since the perm.texi file uses @acronym{GNU} but we try to keep that in sync. with coreutils., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 05/19] Don't include xalloc.h where we don't use it., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 03/19] Fix some space-followed-by-tab sequences., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 06/19] Avoid false positives for the sc_prohibit_test_minus_ao syntax check.,
James Youngman <=
- [Findutils-patches] [PATCH 04/19] Fix some compilation unused-result and missing-declaration warnings., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 08/19] Move safe_atoi out into a separate module., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 09/19] Remove some obsolete source files from POTFILES.in, James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 10/19] Remove files which exist but have no translated messages., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 11/19] Avoid sscanf. Avoid false positives for sc_prohibit_atoi_atof., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 07/19] configure.ac: Quote the first argument to AC_DEFINE., James Youngman, 2010/04/02