It is not common to add a .sh suffix in the Unix and Linux world for several
reasons:
   * It isn't needed: Scripts starting with  "#!" followed by the
interpreter path is sufficient.
   * File types as used by Microsoft and other doesn't really exist in
Posix. Some file suffixes are more or less standardized by convention, like
.c and .h but this is more for the benefit of the toolchain, not for the
operating system or shells.
   * By avoiding adding suffixes users of a script doesn't have to change
anything if the script is reimplemented using another scirpting language.
Shells in general doesn't strip suffixes; A script named foo.sh will
normally have to be invoked as foo.sh not as foo. 

--
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/What-s-the-reason-why-not-to-add-sh-extension-to-geornimo-scripts-tp3131590p3137595.html
Sent from the Development mailing list archive at Nabble.com.

Reply via email to