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

PATCH: Re: Compilation on IRIX 5.3



Bart Schaefer wrote:
> >
> > Can't open -e
> > Can't open /^!MOD!)$/q;p
> My only guess is that IRIX sed does not understand '-ne' and requires that
> there be two options '-n -e' instead.  Could you try that?

That was the problem. The IRIX sed does actually allow '-ne' as long as
there isn't another -e later on the line. The patch fixes our Makefile.

With the other problem with sys/types.h, I've been wasting your time
again so sorry about that. After removing certain entries from my
autoconf cache which were wrong, they were correctly determined when
rerunning configure so another program or older version of Zsh must have
got it wrong. I'll have to remember to try a clear cache before
reporting these build problems.

An unrelated point which I though I should mention is that if you run
the tests as root (which I did accidentally because I'd been root for
make install), you will get a failure for -r in the 07cond tests because
a file can be read as root even if the permissions are 000. I can't
think what the best way to deal with this is, maybe a check at the start
of the tests which displays a warning message.

I've also included a small change to _urls to use Sven's new -K option
to zparseopts. Is there a good reason why the -f options to _urls
completes files _first_ as opposed to together with URLs? I'd prefer to
be reminded by completion that urls would be valid in the current
context and anyone who likes the URLs first can always use a tag-order
style.

Oliver

Index: Completion/User/_urls
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_urls,v
retrieving revision 1.12
diff -u -r1.12 _urls
--- Completion/User/_urls       2000/06/06 19:43:30     1.12
+++ Completion/User/_urls       2000/06/08 13:52:39
@@ -52,8 +52,8 @@
   _wanted -C -f files expl file _files "$@" && return 0
 fi

-zparseopts -D -E g:=glob
-: ${(A)=glob:=-g '*(^/)'}
+glob=(-g '*(^/)')
+zparseopts -D -K -E g:=glob

 ipre="$IPREFIX"

Index: Doc/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.3
diff -u -r1.3 Makefile.in
--- Doc/Makefile.in     2000/06/02 17:22:50     1.3
+++ Doc/Makefile.in     2000/06/08 13:52:39
@@ -193,7 +193,7 @@
        ( \
            echo "startitem()"; \
            for modfile in $(MODDOCSRC); do \
-               sed -ne '1{s|^COMMENT(!MOD!\(.*\)$$|item(tt(\1))(|;p;d;}' \
+               sed -n -e '1{s|^COMMENT(!MOD!\(.*\)$$|item(tt(\1))(|;p;d;}' \
                    -e '/^!MOD!)$$/q;p' \
                    < $(sdir)/$$modfile; \
                echo ")"; \



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