Re: bash problem with #!, rev 2

2005-07-27 Thread Dave Yost
Thanks for your learned analysis. 1. I kind of like the way zsh handles it. 2. In any case, I'll use #!/usr/bin/env http://Yost.com/computers/compileAndGo 3. I'll change my pages to reflect the change by around noon 15:00 UTC+8. Thanks again. Dave ___

Re: bash problem with #!, rev 2

2005-07-26 Thread Bob Proulx
Dave Yost wrote: > 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 That is not a portable combination. The #! needs to be a machine executable and not a s

bash problem with #!, rev 2

2005-07-26 Thread Dave Yost
[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/bi

bash problem with #!

2005-07-26 Thread Dave Yost
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