Mail Archives: djgpp-workers/2000/04/10/02:35:08
On Sun, 9 Apr 2000, Prashant TR wrote:
> 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
> *******************************************
Mark, can you comment on this? I can confirm that, as long as there's
some `command` after "./script", the script gets an empty value for
$source.
- Raw text -