Rohit wrote:
>
> Sachin Garg wrote:
> > "Binand Raj S." wrote:
> > > That also means that there is a slight difference in running a shell> > script
>with the 'x' bit on and directly from command line ( as ./script)
> > > and as sh ./script.
> > sorry for splitting hairs, but I guess the 1st one should be:
> > . ./script
> > sachin
>
> Sorry for glueing the split hair back, but
>
> ./shell-script works very fine on my machine.
./shell-script will work if the file has the x flag on, and I am not
sure about this, the "shebag" line.
it will not work if the file is *not* x-ed, for that u do need:
sh ./shell-script
or
. ./shell-script
and the semantics for both of the above are very different!
Also, one doesn't need the ./ if the script is in u'r path ...
sachin
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/