[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] autogen.sh: Detect python
From: |
Petr Vorel |
Subject: |
Re: [PATCH 2/2] autogen.sh: Detect python |
Date: |
Wed, 18 Aug 2021 09:38:11 +0200 |
> Hi Daniel,
> sorry for longer time to reply (vacation).
> > On Fri, Aug 06, 2021 at 08:45:08AM +0200, Petr Vorel wrote:
> > > It help to avoid error on distros which has only python3 binary:
> > > ./autogen.sh: line 20: python: command not found
> > > Using bash builtin 'command -v' to avoid requiring which as extra
> > > dependency (usable on containers).
> command -v is supported in other common shells (busybox sh and dash),
> I'll add it to the commit message.
> IMHO it's non-POSIX extension, but because it's support we use it in LTP shell
> API, where we expect very minimal shell tools (i.e. no bash, no core utils).
Actually "command -v" [1] and "type" [2] are POSIX.
Kind regards,
Petr
[1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[2] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html
Re: [PATCH 2/2] autogen.sh: Detect python, Dimitri John Ledkov, 2021/08/18
Re: [PATCH 1/2] bootstrap: Require patch, Daniel Kiper, 2021/08/09