bug-make
[Top][All Lists]
Advanced

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

[bug #40503] Shebang detection is flawed


From: Eli Zaretskii
Subject: [bug #40503] Shebang detection is flawed
Date: Thu, 07 Nov 2013 05:27:53 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0

Follow-up Comment #1, bug #40503 (project make):

Detection of Unix scripts with shebang is a compatibility feature, meant for
running Makefile's that invoke Unix shell scripts.  On Unix, what follows the
shebang is the absolute file name of the interpreter in Unix format, like
"/bin/sh" or "/usr/local/bin/perl".  However, it doesn't make sense to use
these absolute file names verbatim on Windows, since the chances of having
/bin or /usr/local/bin directory on every drive are nil.  Therefore, Make uses
the reasonable alternative of using the basename of the interpreter's path,
assuming that it will be on PATH.

So far what Make does.  I'm not sure what you suggest to do instead, when you
say "same as the logic for recipes".  Please elaborate.

In any case, using the whole absolute file name is a non-starter, as it will
punish too many use cases that worked until now.  Likewise, this feature will
never use backslashes, since those cannot possibly happen in Unix scripts. 
I'm unsure how or why you even have such a script with a shebang.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40503>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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