Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Script interpreter path length limit (POUNDBANGLIMIT)
- X-seq: zsh-workers 39020
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Script interpreter path length limit (POUNDBANGLIMIT)
- Date: Wed, 10 Aug 2016 19:20:08 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=DY53pA8IEbb0rY1Trb+grQM7iP+UC8KTY/ZwtLbEt8E=; b=kCpefhW/AgqQWDxKgLGenW/P5xc+/ylOzP5A6b97lLo/HjUTwqQ9LjMyuhL8zSOkzb 39/TkcJODJQgcrT0Zughy6ZGGOggO8SDYwNcx49jWtut1xMJt0bPVqL0921vfJg/yNzL nemfcw1JxZpTb2tYjVGl3YpEEbisPKYZYc0o9LZwqD07O+zcewYtarB/iAx35R2/fud1 8IPYEwPfdOx1bOtPREoPaPfxbm66ZIBpH7hMGRbhpIhejNredPcWKsf4FfAggENy9Tv1 6zCtfCJatNSJ8dCP82h1ZPK9o7crXHjDlgmAMsLLNzjI1XJmbmgx6e0LdD5CnOZrHtZX o0tQ==
- In-reply-to: <57AB7548.6020201@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <57AB7548.6020201@gmail.com>
On Aug 10, 8:41pm, Dennis Sperlich wrote:
}
} 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.
The specific choice of 64 for the buffer size (63+nul) is historical and
loosely based on OS limitations of the 1990s.
A LOT of info about this here:
http://www.in-ulm.de/~mascheck/various/shebang/#results
Rather lacking in very-recent OS's, but you get the idea how inconsistent
this is. I can't find anything about a standard way to look up the limit
on the build architecture, probably because POSIX defines #! as optional.
The limit in zsh could be expanded to allow the OS to flag the error.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author