NetBSD-Bugs archive

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

Re: bin/53136: bmake evaluates MAKEFLAGS like command line argument



The following reply was made to PR bin/53136; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/53136: bmake evaluates MAKEFLAGS like command line argument
Date: Fri, 30 Mar 2018 01:38:27 +0300

 On Thu, Mar 29, 2018 at 13:05:01 +0000, Steffen Nurpmeso wrote:
 
 >  Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
 >   |The following reply was made to PR bin/53136; it has been noted by GNATS.
 >   |From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
 >   |To: gnats-bugs%NetBSD.org@localhost
 >   |Cc: 
 >   |Subject: Re: bin/53136: bmake evaluates MAKEFLAGS like command line argument
 >   |Date: Thu, 29 Mar 2018 15:13:08 +0300
 >   | On Wed, Mar 28, 2018 at 17:40:01 +0000, Steffen Nurpmeso wrote:
 >   |>| On Tue, Mar 27, 2018 at 21:30:00 +0000, steffen%sdaoden.eu@localhost wrote:
 >   |>| 
 >   |>|> POSIX says for MAKEFLAGS
 >   |>|> 
 >   |>|> The difference between the contents of MAKEFLAGS and the make
 >   |>|> utility command line is that the contents of the variable shall not
 >   |>|> be subjected to the word expansions
 >   ...
 >   | *What* is the point?  I can't see you making any.  Also, if i replace
 >  
 >  Then you need to look better.
 >  
 >    #?0[steffen@essex tmp]$ cat z.mk 
 >    all:
 >            echo all
 >    ciao:
 >            echo this is false I thinks.  uwe, got it?
 >    #?0[steffen@essex tmp]$ MAKEFLAGS=" ciao" make -f z.mk all
 >    echo all
 >    all
 >    #?0[steffen@essex tmp]$ MAKEFLAGS=" ciao" smake -f z.mk all
 >    ...echo all
 >    all
 >    #?0[steffen@essex tmp]$ MAKEFLAGS=" ciao" bmake -f z.mk all
 >    echo this is false uwe got it
 >    this is false I thinks.  uwe, got it?
 >    echo all
 >    all
 
 I guess that this is supposed to demonstrate something, but, you know,
 two can play at that game, so I'm going to claim that no, I don't get
 it.  You don't state what you expect to happen and the quoted passage
 about word expansions in the variable assignments is clearly not
 relevant here.  I don't really want to second guess you.
 
 
 >  And, btw.:
 >  
 >    #?0[steffen@essex tmp]$ MAKEFLAGS=ciao bmake -f z.mk all
 >    usage: bmake [-BeikNnqrstWwX]
 >    ...
 
 And what is the problem with the above?
 
 
 Unless you can clearly state a problem I'll just close this bug.
 
 -uwe
 


Home | Main Index | Thread Index | Old Index