bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash problem with #!, rev 2


From: Dave Yost
Subject: bash problem with #!, rev 2
Date: Tue, 26 Jul 2005 14:38:08 -0700

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]