zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>,
	zsh-workers@sunsite.auc.dk
Subject: Re: Bugs with exclusion using file paths.
Date: Wed, 29 Mar 2000 14:18:48 -0800	[thread overview]
Message-ID: <000329141848.ZM7407@candle.brasslantern.com> (raw)
In-Reply-To: <E12aOS2-0004hL-00.2000-03-29-20-48-26@mail4.svr.pol.co.uk>

On Mar 28,  9:48pm, Peter Stephenson wrote:
> Subject: Re: Bugs with exclusion using file paths.
> 
> Let me know if there is still a problem after this.

I now get no core dumps, no BUG:s, and the same results from both dynamic
and static links (which I'm not sure I was getting before, strangely).

A somewhat more complete patch for 11glob.ztst seems to be in order.  This
goes on top of my last patch.  I guess it turns out to be a multios test
as well; hmm.

This patch also fixes a problem I inadvertently found with the test
for completion, which is that if TERM is set to a value which causes ZLE
to be disabled, the test hangs forever.  I chose to force TERM=vt100,
but if anyone can think of a safer choice ...

Index: Test/11glob.ztst
===================================================================
@@ -1,13 +1,20 @@
 # Tests for globbing
 
 %prep
+  mkdir glob.tmp
+  mkdir glob.tmp/dir1
+  mkdir glob.tmp/dir2
+  : >glob.tmp/{,{dir1,dir2}/}{a,b,c}
+
   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/**/*~(.)#
+    local absolute_dir=$(cd glob.tmp && pwd -P)
+    [[ -n $absolute_dir ]] || return 1
+    setopt localoptions extendedglob nullglob
+    print $absolute_dir/**/*~/*
+    setopt nonullglob nomatch
+    print glob.tmp/**/*~(.)#
   }
 
 %test
@@ -244,3 +251,5 @@
 
   ( regress_absolute_path_and_core_dump )
 0:exclusions regression test
+>
+>glob.tmp/a glob.tmp/b glob.tmp/c glob.tmp/dir1 glob.tmp/dir1/a glob.tmp/dir1/b glob.tmp/dir1/c glob.tmp/dir2 glob.tmp/dir2/a glob.tmp/dir2/b glob.tmp/dir2/c
Index: Test/53completion.ztst
===================================================================
@@ -3,7 +3,8 @@
 %prep
   zmodload -i zsh/zpty
 
-  export ZTST_testdir ZTST_srcdir
+  TERM=vt100
+  export ZTST_testdir ZTST_srcdir TERM
   comptest () { $ZTST_testdir/../Src/zsh -f $ZTST_srcdir/comptest -z $ZTST_testdir/../Src/zsh -d $ZTST_testdir/compdump.tmp "$@" }
 
   mkdir comp.tmp


  reply	other threads:[~2000-03-29 22:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-29  8:26 Sven Wischnowsky
2000-03-28 20:48 ` Peter Stephenson
2000-03-29 22:18   ` Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-03-26 22:17 Peter Stephenson
2000-03-29 17:19 ` 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=000329141848.ZM7407@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).