[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] Fixes shebang line in devtools/striplog.
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH] Fixes shebang line in devtools/striplog. |
Date: |
Wed, 13 Apr 2016 15:51:21 -0700 |
Yo Fred!
On Wed, 13 Apr 2016 15:27:08 -0700 (PDT)
Fred Wright <address@hidden> wrote:
> On Wed, 13 Apr 2016, Gary E. Miller wrote:
> > On Wed, 13 Apr 2016 13:13:42 -0700
> > Fred Wright <address@hidden> wrote:
> >
> > > This was using the less reliable non-env version of the Python
> > > shebang line. The fix was neglected in the previous commit.
> >
> > > -#!/usr/bin/python
> > > +#!/usr/bin/env python
> >
> > I do not understand this. Looking at the man page, all env seems to
> > do is run the command with a changed environment,
>
> It runs 'python' as found in your PATH, rather than using the specific
> path in the former version, which might not even exist if that's not
> where your default Python is installed. See, e.g.:
Ah, the #! needs a full path, and we want to search the path. That
makes sense.
> Also, all the other Python programs here use the preferred form.
Yes, consistency is good.
Thanks for the explanation.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgp_u8DcEp1co.pgp
Description: OpenPGP digital signature