bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shebang length limits


From: The Wanderer
Subject: Re: shebang length limits
Date: Fri, 05 Sep 2014 08:26:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 09/05/2014 at 08:20 AM, Greg Wooledge wrote:

> On Fri, Sep 05, 2014 at 08:09:40AM -0400, The Wanderer wrote:
> 
>> What exactly is the limit on the length of a shebang line in an 
>> executable script, when called from within bash?
> 
> Shebangs are handled by the kernel, not by bash.  For more details,
>  Sven Mascheck's page is the best out there: 
> http://www.in-ulm.de/~mascheck/various/shebang/
> 
> So, the answer depends on your operating system.

I already found that page, as well as other discussion, and looked up
the appropriate limit in the appropriate header files. I just wasn't
sure whether it was the definitive statement for this context,
particularly given the odd mismatch I was seeing.

While that does address the question of what the actual length limit is,
it doesn't address the mismatch I saw in the error message which
occurred when the path was too long. Does that error, and the associated
mismatch, in fact originate from within bash?

If not, where does it originate?

If so, any chance of getting the mismatch fixed, so that the shebang
printed when the path is too long is at least the full truncated length
of what was actually searched for rather than only the leading portion
of that path?

- -- 
      The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJUCawRAAoJEASpNY00KDJrlgQQAKjRzRlugcgqj5oYM9Lz/42L
zbzEIaMNAnLG8rIYm3xtEhQ63BygT4UffjHsl/aI4Nz2ogx0/NN0L6mX7nnGimmY
Xg/e1ipKljNWQExCtYf0fBv/YFpSRwXEE62OX85T2H6et2cZH5OWOOMOuN1rr2Ag
bvBJOVU0moJ7VQGuBofgVipfGqY4unx/Xd4M4UVRAC8n3z0WKrDULwxbWY4+3ZUO
tgN5D8MszlJPkF8RQZ5SRLPBdjoiddh7wteGsGMKePOQUM+HiXyN1Oq0ThMjZ/Qw
KaFO73fF9JDUKUevioJZov54padYZ4EwaLa5LAFOU8A3vhUXy7tiX3w4G0IZ9IIb
WuFdRdWeXtFCJoqWknL6SvTaQrWokIeLAcyy8Tmn4NeRPx65JQk7qrYNnSh2LeRT
3s+ek2vSyi3mZ4oqYcltsebvdcAK35EnGoIQOWnJ6QQETYmhCNz+hWw5FjBGC9jI
d4gWlV9Cp4tdSFsmQNyeHjVxWujlZEtCtpiDdPosj0Dv0nh7QptcR5fbPbC7e4E7
61OPEKUdjx/aywObHbaTYYzu9ayi4kU+2mbO0Dv5ybrfTWtQu0POnHpQzWhBj2E2
HNoQpU/a/pNgi8FH/2K2PfMfoI/4NnL3HbtvcaGSI6PiGszL3HHec7SkI2KXK6DJ
KrnUGWNeS+xeJASy6YKH
=flyr
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]