zsh-workers
 help / color / mirror / code / Atom feed
From: Dennis Sperlich <dsperlich@gmail.com>
To: zsh-workers@zsh.org
Subject: Script interpreter path length limit (POUNDBANGLIMIT)
Date: Wed, 10 Aug 2016 20:41:12 +0200	[thread overview]
Message-ID: <57AB7548.6020201@gmail.com> (raw)

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


             reply	other threads:[~2016-08-10 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-10 18:41 Dennis Sperlich [this message]
2016-08-11  2:20 ` Bart Schaefer

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=57AB7548.6020201@gmail.com \
    --to=dsperlich@gmail.com \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).