Spawning shell scripts

Is there a (current) document that summarizes the requirements for
spawning shell scripts? There are several (rather old) articles on the
subject in the newsgroups, stating that the QNX loader is not #! aware
and that handling scripts is the responsibility of ksh, or slinger, or
whoever calls spawn(). And there are some articles referencing the
SPAWN_CHECK_SCRIPT flag that, if implemented, would request spawn() to
take care of scripts. But it’s unclear which versions these articles
refer to, and what’s changed over the years. My experiments indicate
that by the time 6.2.0 came along, #! was handled either in the loader
or in spawn(), regardless of the state of the SPAWN_CHECK_SCRIPT flag.
So again, is there a document that ties all this together, and makes it
clear what works on which system?

Murf

John A. Murphy <murf@perftech.com> wrote:

Is there a (current) document that summarizes the requirements for
spawning shell scripts? There are several (rather old) articles on the
subject in the newsgroups, stating that the QNX loader is not #! aware
and that handling scripts is the responsibility of ksh, or slinger, or
whoever calls spawn(). And there are some articles referencing the
SPAWN_CHECK_SCRIPT flag that, if implemented, would request spawn() to
take care of scripts. But it’s unclear which versions these articles
refer to, and what’s changed over the years. My experiments indicate
that by the time 6.2.0 came along, #! was handled either in the loader
or in spawn(), regardless of the state of the SPAWN_CHECK_SCRIPT flag.
So again, is there a document that ties all this together, and makes it
clear what works on which system?

Since 6.1 I belive that our loader has been #! aware.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/