zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: More Configure problems
Date: Thu, 01 Aug 1996 19:40:59 +0200	[thread overview]
Message-ID: <199608011740.TAA03299@hydra.ifh.de> (raw)
In-Reply-To: "pws@ifh.de"'s message of "Thu, 01 Aug 1996 18:27:40 MET." <199608011627.SAA11721@hydra.ifh.de>

I wrote:
> Next problem with Configure... actually with the makedepend script
> that comes with it:  this assignment is failing:
> 
>     defrule=`<$mf sed -n		\
> ...
> 
> That first interestingly positioned <$mf (sometimes I wonder if people
> do this deliberately) is supposed to be a redirection, but zsh is
> treating it like $(<...).  ksh behaves like sh here, i.e. only $(<...)
> has that behaviour.  Perhaps we should follow suit.

Well, there's only about one possible fix, as follows.  The manual
page mentions $(<...) and specifically fails to mention `<...`, so I
think we're in line with that after the patch.  No other Configure
problems that I've noticed.  (This is actually non-trivial, if you
want to install perl on Linux without having to have bash around.)

*** Src/exec.c.go	Thu Aug  1 19:14:53 1996
--- Src/exec.c	Thu Aug  1 19:19:00 1996
***************
*** 1986,1998 ****
  
  /**/
  LinkList
! getoutput(char *cmd, int qt)
  {
      List list;
      int pipes[2];
      pid_t pid;
  
!     if (*cmd == '<') {
  	int stream, l;
  	char *fi, *s;
  
--- 1986,1998 ----
  
  /**/
  LinkList
! getoutput(char *cmd, int qt, int stringpar)
  {
      List list;
      int pipes[2];
      pid_t pid;
  
!     if (*cmd == '<' && stringpar) {
  	int stream, l;
  	char *fi, *s;
  
*** Src/subst.c.go	Thu Aug  1 19:14:58 1996
--- Src/subst.c	Thu Aug  1 19:22:25 1996
***************
*** 92,105 ****
  LinkNode
  stringsubst(LinkList list, LinkNode node, int ssub)
  {
!     int qt;
      char *str3 = (char *)getdata(node);
      char *str  = str3;
  
      while (!errflag && *str) {
  	if ((qt = *str == Qstring) || *str == String)
  	    if (str[1] == Inpar) {
  		str++;
  		goto comsub;
  	    } else if (str[1] == Inbrack) {
  		/* $[...] */
--- 92,107 ----
  LinkNode
  stringsubst(LinkList list, LinkNode node, int ssub)
  {
!     int qt, stringpar;
      char *str3 = (char *)getdata(node);
      char *str  = str3;
  
      while (!errflag && *str) {
+ 	stringpar = 0;
  	if ((qt = *str == Qstring) || *str == String)
  	    if (str[1] == Inpar) {
  		str++;
+ 		stringpar = 1;
  		goto comsub;
  	    } else if (str[1] == Inbrack) {
  		/* $[...] */
***************
*** 161,167 ****
  		       (qt && str[1] == '"'))))
  		    *str = ztokens[*str - Pound];
  	    str++;
! 	    if (!(pl = getoutput(str2 + 1, qt || ssub))) {
  		zerr("parse error in command substitution", NULL, 0);
  		return NULL;
  	    }
--- 163,169 ----
  		       (qt && str[1] == '"'))))
  		    *str = ztokens[*str - Pound];
  	    str++;
! 	    if (!(pl = getoutput(str2 + 1, qt || ssub, stringpar))) {
  		zerr("parse error in command substitution", NULL, 0);
  		return NULL;
  	    }

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


  reply	other threads:[~1996-08-01 17:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-31 21:11 Announcement draft Zoltan Hidvegi
1996-07-31 22:15 ` Zefram
1996-08-01  6:36 ` Bas V. de Bakker
1996-08-01  8:31   ` Peter Stephenson
1996-08-01  9:04     ` Running zsh as sh (Was: Announcement draft) Bas V. de Bakker
1996-08-01  9:10     ` Announcement draft Andrej Borsenkow
1996-08-01 13:49       ` Here docs Peter Stephenson
1996-08-01 14:07         ` Zoltan Hidvegi
1996-08-01 16:27           ` More Configure problems Peter Stephenson
1996-08-01 17:40             ` Peter Stephenson [this message]
1996-08-01 17:55               ` Zoltan Hidvegi
1996-08-01 21:03                 ` Zoltan Hidvegi
1996-08-01 23:30                   ` Zoltan Hidvegi
1996-08-02  8:32                   ` Peter Stephenson
1996-08-02 10:03                     ` Andrej Borsenkow
1996-08-02 13:29                       ` Zoltan Hidvegi
1996-08-02  1:03             ` Zefram
1996-08-01 14:42   ` Announcement draft Zoltan Hidvegi
1996-08-08 15:13 ` sh compatibility again :-> Andrej Borsenkow
1996-08-12  2:18   ` Zoltan Hidvegi
1996-08-12  4:36     ` Bart Schaefer
1996-08-12  5:00       ` Zefram
1996-08-12  6:01         ` Bart Schaefer
1996-08-12  6:34           ` Bart Schaefer
1996-08-12  6:20       ` Andrej Borsenkow

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=199608011740.TAA03299@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).