In one of our internal scripts (unix.run), I have noticed that the following shebang.
Code:
#!/bin/sh -
for i in test1 test2 test3 ; do
.
.
.
Any idea what the
- in the magic number stands for ?
And what impact does it have on the script ?
Continuing on the same script, I have the following for unix.run
Code:
ls -l unix.run
-rw------- 1 XXXXXX g900 187 Jul 8 04:29 unix.run
If I do a
it says 'Permission denied'
But if I run it as,
it works well.
Why the difference in behaviour between
./unix.run and
sh unix.run?
Shouldn't it always say 'Permision denied' in both the cases ?
Any inputs/pointers on these two points, highly appreciated.
Thanks,
Vino