www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/09/07:44:46

Date: Sun, 9 Apr 2000 18:17:50 +0500
Message-Id: <200004091317.SAA00692@midpec.com>
From: Prashant TR <tr AT midpec DOT com>
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.1000409130448.9347B-100000@is> (message from Eli
Zaretskii on Sun, 9 Apr 2000 13:09:02 +0200 (IST))
Subject: Re: Porting problems with Sh-utils (beta)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000409130448 DOT 9347B-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > 2> Modified the last line to 
> >          $(COMPILE) -c -o $@ $<
> > 
> >    and it works! In fact BASH doesn't like anything within the `....`
> 
> I find the last assertion hard to believe, at least in general.  `...` 
> works for me in many cases, at least in Bash 2.03.  What version of Bash
> do you use?

I'm using BASH 2.03.

> So please post the details, I'm sure Mark would like to see them.  If you 
> can come up with a short Makefile to reproduce just this problem, please 
> post it.  If not, post all the relevant files.

Ok, I have a simple makefile and a script here. Usually in both the sets of
makefiles, the output "There is no bug in BASH!" is expected. However, the
first case doesn't show it while the second does! I tried the same thing on
Linux, but it works alright (shows the message both the times).

*****************************************
Makefile:
-----
SHELL = /bin/sh

all:
	source='There is no bug in BASH!' \
	$(SHELL) ./script \
	echo `echo`script executed
*****************************************

Script:
-----
#!/bin/sh

echo $source
*******************************************

Makefile (version 2):
----
SHELL = /bin/sh

all:
	source='There is no bug in BASH!' \
	$(SHELL) ./script \
	echo script executed
*******************************************

> I'd suggest to wait with the patches until we understand this weird 
> problem.

Yes, I'll release a beta on Simtel once the work is done so
I won't need to write to the maintainer too many times.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019