[Top][All Lists]

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

Re: -V, --verbose, as opposite of -s, --silent, --quiet

From: Alejandro Colomar (man-pages)
Subject: Re: -V, --verbose, as opposite of -s, --silent, --quiet
Date: Mon, 25 Oct 2021 22:41:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

Hi Paul!

On 10/25/21 10:32 PM, Paul Smith wrote:
On Mon, 2021-10-25 at 22:28 +0200, Alejandro Colomar (man-pages) wrote:
Since I use '--warn-undefined-variables', and also to help
readability to someone who may not know about this usage and may
wonder what does that $(V) mean, I used the following:

V :=

Looks good.

Something you might consider is using:

   V ?=

instead of ":=" which would allow someone to run:

   V=1 make

successfully (or put it into the environment in some other way).

Hmmm.  I didn't consider that case.  Thanks!

I recently replaced all of my ?= where I expected that a variable may be set in the command line by :=, just because I noticed that I could set it anyway in the arguments and it would work equally fine, so := would probably simplify make's (and the human parser's) checks, but this case seems a valid argument for ?=.



Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]