[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250701143245.771205665a349b02929e9290@linux-foundation.org>
Date: Tue, 1 Jul 2025 14:32:45 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Bhaskar Chowdhury <unixbhaskar@...il.com>
Cc: Christoph Berg <cb@...cb.de>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tools: mm: Added modern version of shell quote and a
stranza for required command check
On Tue, 1 Jul 2025 16:49:27 +0530 Bhaskar Chowdhury <unixbhaskar@...il.com> wrote:
> On 12:57 Tue 01 Jul 2025, Christoph Berg wrote:
> >> -gnuplot -p << EOF
> >> +$(command -v gnuplot) -p << EOF
> >
> >Why would you delegate PATH searching to `command -v` when you can
> >just invoke the command directly?
> >
>
> Because, for the two reasons,
>
> One posix compliant behavior of the command
>
> Second, the binary could be reside other places than the PATH. And this damn
> thing make sure, the binary in the path should execute only.
I still don't think I understand that :(
Can you please have another pass through the changelog, explain things
more fully and resend?
Thanks.
Also,
> +missing_counter=0
>
> ...
>
> +if ((missing_counter > 0)); then
I'd have used $missing_counter here, but what you have appears to work.
I don't know why :(
> + printf "Minimum %d commands are missing in PATH, aborting\n" "$missing_counter" >&2
> + exit 1
> +fi
Powered by blists - more mailing lists