Mail Archives: djgpp/1998/06/09/10:00:18
I noticed that Bash-1.14.7 has a problem when run from Make. Can
someone comfirm the following erratic behaviour:
SHELL=/bin/sh
# Or `/bin/bash', or `j:/bin/bash.exe', or whatever. Bash 2.01-alpha is OK.
all: script.sh
:
$(SHELL) script.sh 'echo first' 'echo second'
$(SHELL) script.sh 'echo first' 'echo second'
script.sh:
echo 'echo Arguments: \"$$@\"' > $@
# Output:
# echo 'echo Reached \"$@\"' > script.sh
# :
# e:/djgpp/bin/sh.exe script.sh 'echo first' 'echo second'
# first
# e:/djgpp/bin/sh.exe script.sh 'echo first' 'echo second'
# Arguments: "echo first echo second"
The problem is, as you can see, that the first $(SHELL)-line only uses
the second argument... Is it a problem in Bash or in Make?
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
____________
\ /====\ / "You know, Beavis, you need things that suck,
\/ \/ to have things that are cool", Butt-Head.
- Raw text -