job file: add a way to choose script language

Bug #1157325 reported by suhr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

For example, if rc shell (http://en.wikipedia.org/wiki/Rc, also a part of 9base and plan9port) is using.
Variant #1:
    ...
    script /opt/9/bin/rc
        [rc code here]
    end script
    ...
Variant #2:
    ...
    script
        #!/opt/9/bin/rc
        [rc code here]
    end script
   ....
So, you could use short rc/perl/python/etc script inside job file without being have to create outside script file.

Revision history for this message
Steve Langasek (vorlon) wrote :

I don't see this as desirable. Consistency is valuable here - arbitrary scripting languages also implies arbitrary parser conflicts, which we shouldn't have to deal with. I think using 'exec' with an internal script is already a perfectly appropriate way to support languages other than POSIX shell.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Yes, I also believe one should just exec a different interpreter and simply pass the script with -c (which rc, python and others support).

POSIX shell is good enough complete scripting language, with low dependencies and runtime requirements.

I'm inclined to mark this bug won't fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.