[added a diagnosis near the end.]

Please see
http://Yost.com/computers/compileAndGo

That page describes a #!/bin/bash script called compileAndGo, which is used as the program for a #! script.

In other words, a program starting with

  #!/usr/local/bin/compileAndGo

should invoke /usr/local/bin/compileAndGo, and compileAndGo is a program starting with

  #!/bin/bash

Invoking a compileAndGo script works correctly in zsh, but not in bash, sh, ksh, csh, or tcsh.

The problem is that bash is executing the compileAndGo script as if it were a bash script.

(Is this the first time anyone has used a shell script as a #! program?)

Thanks

Dave


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to