[mdlug] I need a script Hero

Aaron Kulkis akulkis3 at hotpop.com
Thu Feb 1 17:10:23 EST 2007


Wojtak, Greg wrote:
> I see nothing wrong with using an extension to denote what the file is.  I
> use .sh and .bin quite frequently to remind myself at a glance that this
> file is indeed a shell script or a binary so I don't accidentally vi a
> binary in a feeble attempt to see what it's doing.  Besides, if this was
> DOS, it would be called INSTALL.BAT, not setup.sh!
> 

If every shell script on a standard installation ended in .sh or .ksh,
half of /usr/bin would have those silly extensions.

If you need to know if a file is a script or binary ...

file   filename

To see my point:

file /usr/bin/* | grep script.

unnecessary filename extensions are nothing more than a pain in rear....





More information about the mdlug mailing list