Re: script relative shebang

2016-06-02 Thread Boris
I still think it is a good thing to do. I will try to implement it on github and may be some day someone influential will help me with that :) On 2 June 2016 05:19:34 BST, Ken Moffat wrote: >On Thu, Jun 02, 2016 at 01:04:46AM +0100, Boris Rybalkin wrote: >> Sorry for insisting, but I would like

Re: script relative shebang

2016-06-01 Thread Ken Moffat
On Thu, Jun 02, 2016 at 01:04:46AM +0100, Boris Rybalkin wrote: > Sorry for insisting, but I would like to explore potential solutions > for fixing the root problem (missing relative shebang), > I know there are ways to workaround that, but I would like to make > sure the proper fix is not possible

Re: script relative shebang

2016-06-01 Thread Boris Rybalkin
Sorry for insisting, but I would like to explore potential solutions for fixing the root problem (missing relative shebang), I know there are ways to workaround that, but I would like to make sure the proper fix is not possible. I understood that it is too late to introduce additional keywords afte

Re: script relative shebang

2016-06-01 Thread Austin S. Hemmelgarn
On 2016-06-01 04:00, Boris wrote: Hi Nicolai, Yes, I think this is too ugly: #!/usr/bin/gawk {exit system("/bin/sh -c 'exec \"$(dirname \"$0\")\"/subdir/catself \"$0\"' " FILENAME);} Imagine you have that feature in your kernel would you rather use: #!{dirname}/subdir/catself The problem wit

Re: script relative shebang

2016-06-01 Thread Bernd Petrovitsch
Hi all! On Wed, 2016-06-01 at 09:00 +0100, Boris wrote: [...] > Yes, I think this is too ugly: > > #!/usr/bin/gawk {exit system("/bin/sh -c 'exec \"$(dirname > \"$0\")\"/subdir/catself \"$0\"' " FILENAME);} The simplest solution for an application today is to provide a wrapper script/program (to

Re: script relative shebang

2016-06-01 Thread Boris
Hi Nicolai, Yes, I think this is too ugly: #!/usr/bin/gawk {exit system("/bin/sh -c 'exec \"$(dirname \"$0\")\"/subdir/catself \"$0\"' " FILENAME);} Imagine you have that feature in your kernel would you rather use: #!{dirname}/subdir/catself You second advice involves changing root fs which

Re: script relative shebang

2016-05-31 Thread Nicolai Stange
Hi Boris, Boris Rybalkin writes: > 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 keyw