Package: make
Version: 3.81-5
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

the following works:

result:=$(shell echo something '...(foo)...')
foo:
        echo result: '$(result)'
.PHONY: foo

rangda[/home/sean] make -f foo.mk                                            :)
echo result: 'something ...(foo)...'
result: something ...(foo)...

the following breaks:

result:=$(shell echo something '...(foo))...')
foo:
        echo result: '$(result)'
.PHONY: foo

rangda[/home/sean] make -f foo.mk                                            :)
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
echo result: '...')'
/bin/sh: -c: line 0: syntax error near unexpected token `)'
/bin/sh: -c: line 0: `echo result: '...')''
make: *** [foo] Error 2


note that the use case where this came up was a sed expression with
a [^)] in it, so this is not just some kinda contrived problem.  it seems
like make is counting the ('s and )'s when parsing, regardless of whether
it should or should not.



        sean

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages make depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries

make recommends no packages.

Versions of packages make suggests:
ii  make-doc                      3.81-4     Documentation for the GNU version 

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFI9hw4ynjLPm522B0RAhPdAJ4mniKWCzuBpfJcMeyGwm0EleOTMwCeMZHG
jSEyYu/wAIqXJwTrQ2aGuRw=
=1dbZ
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to