Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bugs with exclusion using file paths.



On Mar 26, 11:17pm, Peter Stephenson wrote:
} Subject: Bugs with exclusion using file paths.
}
} 1. Some idiot messed up the exclusion of absolute paths
} 2. print **/*~(.)# dumped core
} 
} We need some real globbing tests to pick up this sort of thing; pattern
} matching in tests is insensitive to it.

Here's a patch to 11glob.ztst .. but like Sven I get piles of BUG: output,
so some of the other tests fail as well, and on top of that the **/~(.)#
test still dumps core for me even after applying 10284.  And even before
applying 10284, I *sometimes* got success, and other times got core dumps,
from the /*~/* test.

Index: Test/11glob.ztst
===================================================================
@@ -3,6 +3,13 @@
 %prep
   globtest () { $ZTST_testdir/../Src/zsh -f $ZTST_srcdir/../Misc/$1 }
 
+  regress_absolute_path_and_core_dump() {
+    local absolute_srcdir=$(cd $ZTST_srcdir/.. && pwd -P) || return 1
+    setopt localoptions extendedglob nonomatch
+    print $absolute_srcdir/*~/*
+    print $absolute_srcdir/**/*~(.)#
+  }
+
 %test
 
   globtest globtests
@@ -234,3 +241,6 @@
 >0:  [[ FOO = @(bar|(#i)foo) ]]
 >0:  [[ Modules = (#i)*m* ]]
 >0 tests failed.
+
+  ( regress_absolute_path_and_core_dump )
+0:exclusions regression test

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author