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: Steffen Nurpmeso <steffen%sdaoden.eu@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:01:55 +0200

 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
 
 And, btw.:
 
   #?0[steffen@essex tmp]$ MAKEFLAGS=ciao bmake -f z.mk all
   usage: bmake [-BeikNnqrstWwX]
   ...
 
 This time with smaller reproducer.
 Ciao.
 
 --steffen
 |
 |Der Kragenbaer,                The moon bear,
 |der holt sich munter           he cheerfully and one by one
 |einen nach dem anderen runter  wa.ks himself off
 |(By Robert Gernhardt)
 



Home | Main Index | Thread Index | Old Index