[Top][All Lists]

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

Re: [PATCH 2/2] Detect python

From: Petr Vorel
Subject: Re: [PATCH 2/2] 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:
> > > ./ 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,


reply via email to

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