* 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 <[email protected]> --- 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 <[email protected]> + 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 @{...@} -nt timestamp \; -a \ +find subdir -newer timestamp -and \ + -exec test @{...@} -nt timestamp \; -and \ -exec touch -r @{...@} timestamp \; @end smallexample @@ -4683,7 +4683,7 @@ searching subdirectories inside projects whose SCM directory we already found. @smallexample -find repo/ -exec test -d @{...@}/.svn -o -d @{...@}/.git -o -d @{...@}/CVS \; -print -prune +find repo/ -exec test -d @{...@}/.svn -or -d @{...@}/.git -or -d @{...@}/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 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/findutils-patches
