[mdlug] I need a script Hero

Raymond McLaughlin driveray at ameritech.net
Thu Feb 1 16:12:59 EST 2007


Wojtak, Greg wrote:
>> On 2/1/07, Aaron Kulkis <akulkis3 at hotpop.com> wrote:
>>>>> sh setup.sh
>>>              ^^
>>> EWWWWWWWW  ... never got DOS out of your head, have you...
>>> Just call it 'setup' like normal Unix and Linux users...
>>> SHEESH!

> 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!
> 

I agree that file extensions, while optional, are often a good option.
It's also good that the OS doesn't completely rely on the extension. For
example if you rename pic.jpg to pic.gif or even just pic, most linux
programs will know what to do while Windows will be clueless.

I have a vague recollection of seeing some advertising ay one time,
possibly MS, proclaiming "Say good bye to 'Magic Numbers'!" It seemed
like a good thing then, not so now.

Raymond McLaughlin



More information about the mdlug mailing list