Shell scripts
Should have extensions
63%
Should not have extensions
37%
Poll ended at .
@RosaCtrl No extension, IMO, if it has a shebang -- we don't suffix other executables for end users with the language name, e.g. "blah.rust".
@sanityinc but then we could do the same for Python and Ruby right? Where do we stop? Or we don’t?
@RosaCtrl @sanityinc I remove extensions from Python and Ruby scripts if they’re intended to be directly executable.
@samir @RosaCtrl Yes, absolutely. The idea is that if you rewrite a program from one (scripting or otherwise) language to another, you don't have to change other parts of your system that refer to it. Language is an implementation detail. If you have bash libraries that need to be sourced by others, then they can have a suffix, just like a .py module would.
@sanityinc @samir this is exactly why I’m wondering… I started to rewrite some scripts in Fish just to see and gosh renaming