Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20747

Re: Just curious: why is /usr/bin/python not a symlink?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'oct': 0.02; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:peps': 0.09; 'subject:python': 0.10; 'reedy': 0.16; 'stupid.': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'jan': 0.19; 'subject:not': 0.19; 'discussion': 0.22; 'header:In-Reply-To:1': 0.22; 'feb': 0.22; 'pep': 0.23; 'url:dev': 0.23; 'fine': 0.24; 'says': 0.27; "i'm": 0.28; 'pm,': 0.29; 'ago': 0.31; 'subject:?': 0.31; 'thu,': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'rather': 0.34; 'running': 0.34; 'subject:/': 0.34; 'identical': 0.34; 'numbers.': 0.34; 'root': 0.34; 'thank': 0.35; 'to:addr :python-list': 0.35; 'things': 0.35; 'url:python': 0.35; 'question': 0.36; 'two': 0.36; 'received:org': 0.36; 'comparing': 0.37; 'either': 0.37; 'files': 0.39; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'hill': 0.68; 'confirm': 0.72; 'spot': 0.79; '-0500,': 0.84; '19:34': 0.84; 'python2': 0.84; 'subject:Just': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Just curious: why is /usr/bin/python not a symlink?
Date Thu, 23 Feb 2012 16:11:33 -0500
References <ji630k$52f$1@news.albasani.net> <mailman.84.1330025066.3037.python-list@python.org> <ji64bd$52f$3@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <ji64bd$52f$3@news.albasani.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.87.1330031526.3037.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330031526 news.xs4all.nl 6982 [2001:888:2000:d::a6]:59831
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20747

Show key headers only | View raw


On 2/23/2012 2:34 PM, HoneyMonster wrote:
> On Thu, 23 Feb 2012 14:24:23 -0500, Jerry Hill wrote:
>
>> On Thu, Feb 23, 2012 at 2:11 PM, HoneyMonster
>> <someone@someplace.invalid>  wrote:
>>> $ cd /usr/bin $ ls -l python*
>>> -rwxr-xr-x 2 root root 9496 Oct 27 02:42 python lrwxrwxrwx 1 root root
>>>     6 Oct 29 19:34 python2 ->  python -rwxr-xr-x 2 root root 9496 Oct 27
>>> 02:42 python2.7 $ diff -s  python python2.7 Files python and python2.7
>>> are identical $
>>>
>>> I'm just curious: Why two identical files rather than a symlink?
>>
>> It's not two files, it's a hardlink.  You can confirm by running ls -li
>> python* and comparing the inode numbers.
>
> You are spot on. Thank you, and sorry for my stupidity.

The question 'why a hardlink rather than symlink' is not stupid. It was 
part of the discussion of http://python.org/dev/peps/pep-0394/
The answer was 'history' and how things were 20 years ago and either the 
pep or the discussion around it says symlinks are fine now and the 
decision is up to distributors.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Just curious: why is /usr/bin/python not a symlink? HoneyMonster <someone@someplace.invalid> - 2012-02-23 19:11 +0000
  Re: Just curious: why is /usr/bin/python not a symlink? Colin Higwell <colinh@somewhere.invalid> - 2012-02-23 19:15 +0000
  Re: Just curious: why is /usr/bin/python not a symlink? Jerry Hill <malaclypse2@gmail.com> - 2012-02-23 14:24 -0500
    Re: Just curious: why is /usr/bin/python not a symlink? HoneyMonster <someone@someplace.invalid> - 2012-02-23 19:34 +0000
      Re: Just curious: why is /usr/bin/python not a symlink? Terry Reedy <tjreedy@udel.edu> - 2012-02-23 16:11 -0500
        Re: Just curious: why is /usr/bin/python not a symlink? John Roth <johnroth1@gmail.com> - 2012-02-24 09:22 -0800
      Re: Just curious: why is /usr/bin/python not a symlink? Jerry Hill <malaclypse2@gmail.com> - 2012-02-23 14:54 -0500
        Re: Just curious: why is /usr/bin/python not a symlink? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-02-24 08:47 +0100
          Re: Just curious: why is /usr/bin/python not a symlink? Roy Smith <roy@panix.com> - 2012-02-24 08:17 -0500
  Re: Just curious: why is /usr/bin/python not a symlink? Chris Rebert <clp2@rebertia.com> - 2012-02-23 11:26 -0800

csiph-web