git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] config.mak.uname: set PERL_PATH for FreeBSD 5.0+

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 21, 2016, 01:02 UTC
Message-ID
<20160721010206.GA215655@vauxhall.crustytoothpaste.net>
In-Reply-To
<CAPc5daXuZZuhaTW-hb6FOo6p+gzvrd-rx-FDvo4VzCOH+HpSJg@mail.gmail.com>
On Wed, Jul 20, 2016 at 11:10:40AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> On Wed, Jul 20, 2016 at 11:07 AM, Eric Wong <e@80x24.org> wrote:
> > Also, my use of a numeric comparison may be more future-proof
> > in case FreeBSD decides to have /usr/bin/perl again.
> >
> > I also wonder why we don't use `which` to search for somewhat
> > standard path components, instead.  Something like:
> 
> Because historically output from "which" was not meant to be
> machine parseable (some implementation said 'perl is /usr/bin/perl')

The POSIXy way to write which is "command -v", which may or may not be more portable. It does have the desired output, though.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Junio C HamanoNext: Johannes Schindelin
Message 5 of 6 in “config.mak.uname: set PERL_PATH for FreeBSD 5.0+”
  1. config.mak.uname: set PERL_PATH for FreeBSD 5.0+Eric Wong, Jul 20, 2016
  2. Johannes SchindelinJul 20, 2016
  3. Eric WongJul 20, 2016
  4. Junio C HamanoJul 20, 2016
  5. brian m. carlsonJul 21, 2016
  6. Johannes SchindelinJul 21, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.