NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41998: /usr/bin/make: .for loop + ":" inside iter_var = bug



>Number:         41998
>Category:       bin
>Synopsis:       /usr/bin/make: .for loop + ":" inside iter_var = bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 05 20:15:00 +0000 2009
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #6: 
Tue Aug 18 00:53:31 EEST 2009 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

Makefile:
    var = head
    res = no

    .for i in head:tail
    .if !empty(var:M${i:C/:.*//})
        res=yes
    .endif
    .endfor

    all:
        @echo ${res}

shell session:
    0 ~>/usr/bin/make -f /home/cheusov/tmp/1.mk all 
    make: Bad modifier `:tail' for 
    no
    0 ~>

This is how NetBSD-5 make and current make work.

The problem here is that "head" and "tail" are separated by colon.

!! Simon Gerraty asked to assign this bug to him. !!

>Fix:

Unknown


Home | Main Index | Thread Index | Old Index