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


Groups > linux.kernel > #1410650

script relative shebang

From Boris Rybalkin <ribalkin@gmail.com>
Newsgroups linux.kernel
Subject script relative shebang
Date 2016-05-31 23:50 +0200
Message-ID <rEZHX-7YV-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi All,

I would like to know if any changes to parsing '#!' script header line
are accepted in particular having ability to run interpreter from
relative to the script path?

Something like:

#!{dirname}/python/bin/python

Where {dirname} is a special keyword replaced with dirname of a script.

This is useful for apps which bring dependencies with them and do not
want to hardcode absolute paths as target fs layout is not known or
has to be flexible.

As I understand the implementation is here and I could probably provide a patch:
fs/binfmt_script.c

Sorry if this is not the right place to discuss these things.

Thank you.


--
Boris Rybalkin
ribalkin@gmail.com

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

script relative shebang Boris Rybalkin <ribalkin@gmail.com> - 2016-05-31 23:50 +0200
  Re: script relative shebang Nicolai Stange <nicstange@gmail.com> - 2016-06-01 01:10 +0200
    Re: script relative shebang Boris <ribalkin@gmail.com> - 2016-06-01 10:10 +0200
      Re: script relative shebang Bernd Petrovitsch <bernd@petrovitsch.priv.at> - 2016-06-01 15:20 +0200
      Re: script relative shebang "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-06-01 17:40 +0200
        Re: script relative shebang Boris Rybalkin <ribalkin@gmail.com> - 2016-06-02 02:10 +0200
          Re: script relative shebang Ken Moffat <zarniwhoop@ntlworld.com> - 2016-06-02 06:30 +0200
            Re: script relative shebang Boris <ribalkin@gmail.com> - 2016-06-03 00:50 +0200

csiph-web