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

Re: 50cd.ztst fails if run from unresolved path



In article <E11y1bc-00003y-00.1999-12-14-23-43-45@xxxxxxxxxxxxxxxxxxx>,
  Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx> writes:

> Tanaka Akira reported this.  Unsetting PWD seemed to fix it.  I haven't had
> a patch yet, however, and I'm too lazy to install enough symlinks to try it
> out myself.

I think unsetting PWD is not good way to fix the problem because it
must be described outside of 50cd.ztst.  I dislike introducing
individual test specific stuff to Makefile.in.

So, I tried to initialize PWD in 50cd.ztst.

However, I think unsetting *all* environment variables is another way.

Index: Test/50cd.ztst
===================================================================
RCS file: /projects/zsh/zsh/Test/50cd.ztst,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 50cd.ztst
--- Test/50cd.ztst	1999/12/13 19:06:59	1.1.1.1
+++ Test/50cd.ztst	1999/12/15 09:59:10
@@ -38,6 +38,9 @@
 
  ln -s ../real cdtst.tmp/sub/fake
 
+ setopt chaselinks
+ cd .
+ unsetopt chaselinks
  mydir=$PWD
 
 %test
-- 
Tanaka Akira



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