geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KHAksnes <khaks...@gmail.com>
Subject Re: What's the reason why not to add .sh extension to geornimo scripts ?
Date Mon, 04 Jul 2011 13:47:03 GMT
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.

Mime
View raw message