Menu

#237 There's no way to make a source file executable

workingwiki
open
None
5
2013-05-07
2012-12-15
Lee Worden
No

WW just assumes that source files should be readable (and writable by WW/PE). But what about if someone imports a project that includes executable scripts? Too bad!

Discussion

  • Anonymous

    Anonymous - 2012-12-15

    I kind of think that cross-platform executability is tricky, and that the current structure provides a work-around (a make rule to chmod if necessary; indirect calling where possible).

    To be specific, I do perl on WW by saying "perl -f" instead of trying to make "#!" work. And I recompile all of my C.

     
  • Jonathan Dushoff

    That was just me just now.

     
  • Lee Worden

    Lee Worden - 2012-12-17

    This is about source files, so scripts only in this context. Compiled executables should never be source files. Scripts with #! are generally portable enough to not worry about cross-platform issues. I'm not considering this bug especially urgent, but I'd ideally like to support as many projects as possible as-is, without requiring people to tweak them and add workarounds.

     
  • Jonathan Dushoff

    Still not sure. #! scripts may be portable, but the #! line itself is more problematic. Why should my perl executable be in the same place as yushan's?

     

Anonymous
Anonymous

Add attachments
Cancel