Users browsing this thread: 9 Guest(s)
movq
Long time nixers
(12-11-2020, 02:57 PM)stratex Wrote: So we are not using Bourne shell, or something strictly POSIX compliant, we are using BASH, I thought, why not using .bash for bash scripts, and .sh for posix compliant ones.

Executables are the one place where I usually don’t use a file name extension. It happens surprisingly often that I re-implement a script in another scripting language or in C. When that happens, I don’t want to update all other programs/scripts to now use `make-html-index.py` instead of `make-html-index.sh` and then 3 months later just `make-html-index`, because I finally went for C (or Go or Rust or …).

All other files usually get an extension – if I intend to keep them around. I want a simple `ls` to indicate which kind of file it probably is. Then of course there is stuff like `README`, where I don’t use an extension. Now that I think about it, it’s much more inconsistent than I was aware of.


Messages In This Thread
File extensions - by stratex - 12-11-2020, 02:57 PM
RE: File extensions - by venam - 12-11-2020, 03:43 PM
RE: File extensions - by jkl - 12-11-2020, 03:48 PM
RE: File extensions - by opfez - 12-11-2020, 03:58 PM
RE: File extensions - by jkl - 12-11-2020, 04:09 PM
RE: File extensions - by venam - 12-11-2020, 04:24 PM
RE: File extensions - by pkal - 12-11-2020, 04:36 PM
RE: File extensions - by seninha - 12-11-2020, 04:36 PM
RE: File extensions - by stratex - 12-11-2020, 04:56 PM
RE: File extensions - by jkl - 12-11-2020, 05:04 PM
RE: File extensions - by Dworin - 12-11-2020, 11:52 PM
RE: File extensions - by movq - 13-11-2020, 05:02 PM
RE: File extensions - by mattrose - 13-11-2020, 09:03 PM
RE: File extensions - by Dworin - 14-11-2020, 12:01 AM
RE: File extensions - by mattrose - 14-11-2020, 01:07 AM
RE: File extensions - by z3bra - 14-11-2020, 06:08 AM
RE: File extensions - by venam - 14-11-2020, 06:28 AM
RE: File extensions - by s0kx - 14-11-2020, 06:35 AM