zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: Test version zsh-3.1.6-test-1
Date: Tue, 13 Jul 1999 13:30:20 +0200 (MET DST)	[thread overview]
Message-ID: <199907131130.NAA30286@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Mon, 12 Jul 1999 16:47:10 +0200


Peter Stephenson wrote:

> Much of the new code is fairly well tested, so my main interest now is to
> sort out compilation problems for systems we may not have tried.  In
> particular, it would be helpful if anyone compiling this (including regular
> zsh-workers) could check against the notes for their configuration in
> Etc/MACHINES, and drop a note to zsh-workers@sunsite.auc.dk about anything
> different, i.e. successful compilations on configurations not mentioned at
> all, or problems not mentioned for configurations which are supposed to
> work, or problems which seem to have been exaggerated --- don't assume we
> know anything machine-specific which isn't in Etc/MACHINES.

Under DU 4.0 with gcc-2.8.1 I get a SEGV in a piece of completely
correct C-code in bin_read(). I can work around this by using the
patch below -- which, of course, is completely silly.

Dunno if this should be included, but the SEGV is deadly: it fails on
e.g. the read in compinit.

Bye
 Sven

diff -u ../zn/os/builtin.c Src/builtin.c
--- ../zn/os/builtin.c	Tue Jul 13 10:58:50 1999
+++ Src/builtin.c	Tue Jul 13 13:22:33 1999
@@ -3251,10 +3251,15 @@
     }
 
     firstarg = *args;
-    if (*args && **args == '?')
-	args++;
-    /* default result parameter */
-    reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+    if (*args && **args == '?') {
+    	args++;
+	/* default result parameter */
+	reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+	/* (If we put this reply=... after the `if' gcc-2.8.1 under
+	   Digital Unix 4.0 generates incorrect code.) */
+    } else
+	reply = *args ? *args++ : ops['A'] ? "reply" : "REPLY";
+
     if (ops['A'] && *args) {
 	zwarnnam(name, "only one array argument allowed", NULL, 0);
 	return 1;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-07-13 11:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-13 11:30 Sven Wischnowsky [this message]
1999-07-13 11:47 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1999-07-13 12:22 Sven Wischnowsky
1999-07-13 11:01 Sven Wischnowsky
1999-07-12 14:47 Peter Stephenson
1999-07-12 17:03 ` Thomas Koehler
1999-07-13  7:42   ` Peter Stephenson
1999-07-13 10:40     ` Thomas Koehler

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=199907131130.NAA30286@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-users@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).