www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/10/12:14:35

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 10 Apr 2000 13:07:34 -0400
MIME-Version: 1.0
Subject: Re: Porting problems with Sh-utils (beta)
Message-ID: <38F1D216.13576.2718AE@localhost>
References: <38F1A726 DOT 23834 DOT 332F7B AT localhost>
In-reply-to: <Pine.SUN.3.91.1000410165821.24866E-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

Actually, I think the snippet should be modified to:

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

Line continuation is fine, but you still have to use ';' for multiple 
commands. With the modified version, 'echo $source' is empty inside 
'./script', but I think that's correct since the value isn't exported. 
However, changing the last line to:
	echo `echo`script executed source=$$source
should now print the value of source.


> I think the Makefile actually _wants_ this to be a single line.  Is 
> anything wrong with that?  I understand that it works on Unix unaltered.

Nothing wrong with that.

- Raw text -


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