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

Re: 4.0.1-pre-4

mlandis wrote:
> ./A01grammar.ztst: starting.
> Test ./A01grammar.ztst failed: bad status 1, expected 0 from:
>   echo f*
>   noglob echo f*
> Error output:
> ZTST_execchunk:2: no matches found: f*
> Was testing: `noglob' precommand modifier
> ./A01grammar.ztst: test failed.

(By the way, I don't think you've mentioned what system this is on yet.)

The globbing failure is the basic problem (maybe not the only one, but the
one to solve first).  This is stupid, but have you tried doing `setopt
glob' before trying a pattern match on files?

Next, does

[[ foo = f* ]] && print "that worked"

work?  If not, it looks like pattern.c wasn't compiled properly.  In that
case, it may be some alignment problem.  You can probe a bit further by

[[ foo = foo ]] && print "it worked that time"

since strings are optimised not to do full pattern matching.  After that,
I'm stuck without some kind of debugger trace.

If the pattern match did work, however, it's probably something wrong with
the file code, maybe something like readdir().  It's nothing to do with
this from Etc/MACHINES, is it?  It's unlikely to be different from

Sun: Solaris 2.*
	The UCB versions of the routines for reading directories are not
	usable (the struct definitions are incompatible with the ones
	assumed by zsh).  The symptom of this is that globbed filenames in
	the compiled version of zsh will be missing the first two letters.
	To avoid this, make sure you compile zsh without any reference
	to /usr/ucblib in your LD_LIBRARY_PATH.  You can easily do this
	by just unsetting LD_LIBRARY_PATH before building zsh.

Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk

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