Bash cannot run shell scripts

The version of bash available for QRTP cannot run a shell script with
an explicit executable name. For example:

#!/usr/bin/perl
echo $SHELL

will actually run, and product the output:
/usr/local/bin/bash

on my machine. Bash has ignored the #! directive. Is this a known
problem with the bash port, or is there some configuration that is
required to make this go?

Andrew

It’s probably necessary to explicitly tell bash that the RTP doesn’t
support the #! loader.

BTW - pdksh knows this, and on getting an ENOEXEC it will try and
figure out the #! stuff itself.

Andrew Thomas <Andrew@cogent.ca> wrote:

The version of bash available for QRTP cannot run a shell script with
an explicit executable name. For example:

#!/usr/bin/perl
echo $SHELL

will actually run, and product the output:
/usr/local/bin/bash

on my machine. Bash has ignored the #! directive. Is this a known
problem with the bash port, or is there some configuration that is
required to make this go?

Andrew


cburgess@qnx.com