3 ms·
This is a gripe I have with my current work project. All project scripts are written as bash functions and the convention is to just source a huge bash script t
by fortruce 2y ago
This is a gripe I have with my current work project. All project scripts are written as bash functions and the convention is to just source a huge bash script to have them all available.
As the project has grown these bash functions have become more and more esoteric. Discoverability is not as good as could be expected from a cli tool with subcommands and simple help strings.
Additionally, I've found this setup has caused issues with various tooling that an executable cli tool would not have. For example, zellij layout commands do not run through a shell so you cannot specify a bash function/alias as a pane command.
- jasonpeacock 2y agoSourcing bash functions is the worst experience, I loathe it. Many people think of Bash as "special", but it's just another interpreted language like Ruby or Python or Perl. It's that many people also use a Bash repl for their interactive shell that they get confused.
- 000ooo000 2y agoBash's ubiquity does make it special
- rad_gruchalski 2y agoBash is everywhere.