From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>,
zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Bugs with exclusion using file paths.
Date: Wed, 29 Mar 2000 17:19:58 +0000 [thread overview]
Message-ID: <1000329171958.ZM20502@candle.brasslantern.com> (raw)
In-Reply-To: <E12Zgt3-0000L5-00.2000-03-27-22-17-25@cmailg1.svr.pol.co.uk>
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
next prev parent reply other threads:[~2000-03-29 17:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-26 22:17 Peter Stephenson
2000-03-29 17:19 ` Bart Schaefer [this message]
2000-03-29 8:26 Sven Wischnowsky
2000-03-28 20:48 ` Peter Stephenson
2000-03-29 22:18 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1000329171958.ZM20502@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).