delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/09/10:00:18

From: mdruiter AT cs DOT vu DOT nl (Ruiter de M)
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in Bash/Make combi with `:'
Date: 9 Jun 1998 13:02:19 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 30
Message-ID: <6ljbor$fa2$1@star.cs.vu.nl>
NNTP-Posting-Host: sloep112.cs.vu.nl
Cc: jack AT st DOT rim DOT or DOT jp
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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