All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Daniel Kiper <daniel.kiper@oracle.com>, grub-devel@gnu.org
Subject: Re: [PATCH 2/2] autogen.sh: Detect python
Date: Wed, 18 Aug 2021 09:38:11 +0200	[thread overview]
Message-ID: <YRy44yiQ9exXhRfy@pevik> (raw)
In-Reply-To: <YRyxxZtY3zM+dMe3@pevik>

> 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


  reply	other threads:[~2021-08-18  7:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-06  6:45 [PATCH 1/2] bootstrap: Require patch Petr Vorel
2021-08-06  6:45 ` [PATCH 2/2] autogen.sh: Detect python Petr Vorel
2021-08-09 11:52   ` Daniel Kiper
2021-08-09 16:36     ` Daniel Kiper
2021-08-18  7:19       ` Petr Vorel
2021-08-18 16:04         ` Bruce Dubbs
2021-08-26 14:34           ` Daniel Kiper
2021-08-26 14:30         ` Daniel Kiper
2021-08-30  9:34           ` Petr Vorel
2021-08-18  7:07     ` Petr Vorel
2021-08-18  7:38       ` Petr Vorel [this message]
2021-08-26 14:37         ` Daniel Kiper
2021-08-18 16:58   ` Dimitri John Ledkov
2021-08-18 17:51     ` Petr Vorel
2021-08-18 17:54       ` Dimitri John Ledkov
2021-08-09 11:20 ` [PATCH 1/2] bootstrap: Require patch Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRy44yiQ9exXhRfy@pevik \
    --to=pvorel@suse.cz \
    --cc=daniel.kiper@oracle.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.