From 7c900003934b07d0294ecfadb4b71f1996dd3c10 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 21 Dec 2011 11:45:43 +0000 Subject: [PATCH] Add another ignore example to the manual and test suite. --- doc/stow.texi | 10 +++++----- t/ignore.t | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/stow.texi b/doc/stow.texi index 5eb5fcd..86d1cfc 100644 --- a/doc/stow.texi +++ b/doc/stow.texi @@ -505,11 +505,11 @@ expressions which contain @samp{/}, and @code{bazqux} as the text for matching against regular expressions which don't contain @samp{/}. Then regular expressions @code{bazqux}, @code{baz.*}, @code{.*qux}, @code{bar/.*x}, and @code{^/foo/.*qux} would all match (causing the -file to be ignored), whereas @code{bar}, @code{baz}, and @code{qux} -would not (although @code{bar} would cause its parent directory to be -ignored and prevent Stow from recursing into that anyway, in which -case the file @file{bazqux} would not even be considered for -stowing). +file to be ignored), whereas @code{bar}, @code{baz}, @code{qux}, and +@code{o/bar/b} would not (although @code{bar} would cause its parent +directory to be ignored and prevent Stow from recursing into that +anyway, in which case the file @file{bazqux} would not even be +considered for stowing). As a special exception to the above algorithm, any @file{.stow-local-ignore} present in the top-level package directory diff --git a/t/ignore.t b/t/ignore.t index 83966fc..d50c94c 100755 --- a/t/ignore.t +++ b/t/ignore.t @@ -8,7 +8,7 @@ use strict; use warnings; use File::Temp qw(tempdir); -use Test::More tests => 286; +use Test::More tests => 287; use testutil; use Stow::Util qw(join_paths); @@ -235,7 +235,7 @@ sub test_examples_in_manual { ); } - for my $re ('bar', 'baz', 'qux') { + for my $re ('bar', 'baz', 'qux', 'o/bar/b') { my $local_ignore = setup_package_local_list($stow_path, $package, "$re\n"); test_ignores( $stow_path, $package, $context,