Quote:
Originally Posted by
DGPickett
I do not think you need exec or full path for sh, and exec just saves a fork.
A fork can be a thing worth saving, but yes, it's not strictly necessary.
The full path for a shell is just a habit of mine.
That should have been
-s, pardon me. Don't know how I managed the mixup when I was doublechecking in man pages as I typed!
-s forces it to read from standard input, which makes it treat parameters as script parameters $1 $2 etc instead of file names. It's a very portable option which seems to have been inherited from ancient bourne into bash, dash, ash, zsh, csh, ksh, and beyond.