From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Mon, 10 Apr 2000 13:17:02 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Porting problems with Sh-utils (beta) Message-ID: <38F1D44E.14700.2FC3EB@localhost> 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. This part is correct. See 'command execution environment' in the Bash manual. For 'source' to work in ./script, change the line: > $(SHELL) ./script ; to > . ./script ;