Avoid treating 'sh -c emacs' as an instance of emacs, by recognising
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 30 Nov 2012 20:52:55 +0000 (20:52 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 30 Nov 2012 20:52:55 +0000 (20:52 +0000)
commitacf5ef0b86d1ad68e7a5bada63aeaa118009303b
tree80c4ecd7755c06a07ddc5ea852968ba92f93cef4
parent0a1d8c87d4b9e2bc0bbeb20d505804e08165034c
Avoid treating 'sh -c emacs' as an instance of emacs, by recognising
that the -c means that the next argument isn't the name of a script.
Likewise with various other interpreter programs.

This is unpleasantly complicating the mechanism I'll undoubtedly end
up needing for overriding the built-in interpreter list, but there we
go.

git-svn-id: svn://svn.tartarus.org/sgt/utils@9717 cda61777-01e9-0310-a592-d414129be87e
pid/pid.c