Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Qmail-Scanner-Diagnostics: from mail-wm0-f44.google.com by f.primenet.com.au (envelope-from <dsperlich@gmail.com>, uid 7791) with qmail-scanner-2.11 
 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1.  
 Clear:RC:0(74.125.82.44):SA:0(0.0/5.0):. 
 Processed in 0.134021 secs); 10 Aug 2016 18:41:31 -0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS,
	T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1
X-Envelope-From: dsperlich@gmail.com
X-Qmail-Scanner-Mime-Attachments: |
X-Qmail-Scanner-Zip-Files: |
Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.44 as permitted sender)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:subject:openpgp:to:message-id:date:user-agent:mime-version
         :content-transfer-encoding;
        bh=ucqaSUo2QB8QFZ9MNAgMPPi7Ol3BQpEKF4gEDdyao+g=;
        b=avj0hmZMHmvcF7qFOR8XNLcYs4fDTSpnCZRkl8DHuoZwDeqcMeEKFE2h2URwNTD1bw
         VsYXbgPygwkpnKR3fGLiCceg73VekTmaxPvUnsxSwMXEduwdKBGjXLf9mWevcMfj5FbN
         o6cNxXaaY+NPKn1zYdp7FsszMf4a26mkxvSpJ+Td1+keW9TnIOfgsrXumEQGQM2pw17k
         IIYa+ZsVB5oulAmMMcZrbdsdHtwo422wWYkPkjF0+XtyJXjPTCRnl1rWBbmp6PNcVDJY
         Py+FfLHbS9ZzTCdlpjIFhzyPCPw/465KyDeBJn+8R7lSFbiTaSJgNNTytw0aaajbE9gX
         spNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:subject:openpgp:to:message-id:date
         :user-agent:mime-version:content-transfer-encoding;
        bh=ucqaSUo2QB8QFZ9MNAgMPPi7Ol3BQpEKF4gEDdyao+g=;
        b=EDAH57gP30RTMci47rnnigb1MqMxQH9SgTAERDrrwALVyyMOb+VsHyZsWa0DcvoywN
         mbuPRb4lSEUphNJmiqmvHqIoJfEa063HbqNrYAU3RhLa2TUBaHiQH/GcgqtblK3CRt+m
         t7lrWCPod45M3YWepy8JT2sJyZn+St2OhwgRUJdpJsj2pgA7+3GzUrWaLgGozGd5EMSq
         KGoXuBGe5qDnDoCM0gILBfA2w7U8GTexaFfanJ2WcQ1I0S8dldN4Cfm5fWF79FL1iKWO
         DhmxICQaKf3FDn3NoiXD3ZCzfX6pGUKo7SSuA/UsRHvBwEIiJngYcfNpUnjjvdVTNTkU
         AcHw==
X-Gm-Message-State: AEkooutIdLG6Un4/zda1st2CUP07SY02MT/VyKHkVKhgXMwuchlkOl8vkDL6ICVIQ9MIcA==
X-Received: by 10.28.4.77 with SMTP id 74mr5034312wme.84.1470854483417;
        Wed, 10 Aug 2016 11:41:23 -0700 (PDT)
From: Dennis Sperlich <dsperlich@gmail.com>
Subject: Script interpreter path length limit (POUNDBANGLIMIT)
Openpgp: id=176AF3931520CC606CEAC2E33109D60EA3566DC9
X-Enigmail-Draft-Status: N1110
To: zsh-workers@zsh.org
Message-ID: <57AB7548.6020201@gmail.com>
Date: Wed, 10 Aug 2016 20:41:12 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.5.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Seq: zsh-workers 39016

Hi,

i noticed an strange effect when calling a (python) script where the
interpreter is specified in the first line as follows:
#!/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.7.4-x86_64-slc6-gcc48/sw/lcg/external/Python/2.7.4/x86_64-slc6-gcc48-opt/bin/python

When i call this script from within zsh i get the following error:
zsh: $HOME/.local/bin/pip: bad interpreter:
/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.7: no such
file or directory

It seems like there is a arbitrary 63 character limit on the interpreter
char buffer. At least this is what i understand from the code in
Src/exec.c starting line 431.

So i'm wondering whether this is intentional and i'm not supposed to
point to interpreters with longer paths or just there due to historic
reasons? (i briefly checked, bash seems to have a limit of 79 characters
:-) )

Cheers
Dennis

