[Ilugc] Using sha-bang..

  • From: andyetitmoves@xxxxxxxxx (Ramkumar R)
  • Date: Fri Jul 8 18:25:57 2005

Hi!

A doubt regarding the usage of sha-bang in shell scripts. One problem
in specifying the interpreter is that we don't know the path of the
program when we want the program to be redistributable. sh can be
assumed to be on /bin/sh but this is not the case with other
interpreters. One solution suggested is to use env to find out the
executable using PATH. However, it turns out that the location of env
itself is not standard. I've seen systems with it being in /bin as
well as /usr/bin. Is their any good solution for this ?

it moves on...

-- 
The day Microsoft makes something that doesn't suck
is probably the day they start making vacuum cleaners.
                                               -Ernst Jan Plugge

Other related posts: