$ gsr ../../pinf-loader.js ../HelloWorld
Gives following warning:
gsr: Warning: First line of file-interpreter script does not contain #!
Source (../../pinf-loader.js):
--
require("./lib/pinf-loader-js/loader").boot();
--
I think the warning should only be issued if the ".js" extension is
omitted in the script path argument to `gsr`.
i.e.
$ gsr ../../pinf-loader ../HelloWorld
=> No warning
$ gsr ../../pinf-loader.js ../HelloWorld
=> Issue warning
Christoph
Changing behavior based solely on a suffix is a disaster that M$
has inflicted on the world with MIME types.
Admittedly its tricky to do the textual correlation based solely on
content to truly detect whether file content mught need a #! (or not).
I'm pretty sure that if/when Wes succeeds in releasing GPSEE that
he will be forced to be less pedantic and remove the warning entirely ;-)
73 de Jeff
> Christoph
>
> $ gsr ../../pinf-loader.js ../HelloWorld
> I think the warning should only be issued if the ".js" extension is omitted in the script path argument to `gsr`.
I'm pretty sure that if/when Wes succeeds in releasing GPSEE that
he will be forced to be less pedantic and remove the warning entirely ;-)
I'm pretty sure that if/when Wes succeeds in releasing GPSEE that
he will be forced to be less pedantic and remove the warning entirely ;-)
Yeah. I have a feeling you're right, but I'll want to make sure I can guarantee correct behaviour in all cases first. I wish the exec(2) semantics were clearer for file interpreters, but we can't change 30 years of history.
On 20 September 2011 15:19, Jeff Johnson <n3...@mac.com> wrote:
> $ gsr ../../pinf-loader.js ../HelloWorld
Any chance I could convince you to use gsr -f ?
But in the "real world" of FL/OSS the only rule that applies is this:The nail that sticks out will get hammered.