Here’s what I learned from starting to read the source code to fff - in particular, the main function.
fffis “a simple file manager written in Bash”. As I’m always on the lookout to learn more about Bash, that description got my attention immediately. It’s a small but perfectly formed offering, complete with man page and even a
Makefilefor installation. And the file manager executable* itself is a single Bash script.
*I use this term deliberately, and it does make me stop and think every time I see scripts in a
bindirectory (where “bin” stands for binary). But that’s a conversation for another time.
The author, Dylan Araps has produced other interesting pieces of software (such as neofetch) as well some great documents such as the pure bash bible as well as the pure sh bible. He’s also the creator of Kiss Linux. He has a reputation for writing great Bash code, so this seems like an opportunity too good to miss to learn from better programmers.
It seems that recently Dylan has disappeared off the radar, I don’t know what the situation is but I wish him well.
Where I can, I link to reference material so you can dig in further to Bash details that take your fancy. This reference material includes the following sites (and there are more of course):