🐌 v2.5.4 🍬🎰
☘️ Features
- [
c]: ensure using command onPATH, and check the command existence onPATH👣 - [
coat/taoc]: add--help/--versionoptions 🚩
🍬 Improvements
- [
find-in-jars]: addIFS=forread, more robust 💪- file paths may contain leading spaces
- [
show-busy-java-threads]:- improve separator blank line output 💅 fix wrong blank line logic
- extract
timestampvar to avoid inconsistency ⌚️
- unify error message format and refactor related functions ℹ️
- keep
usagefunction simple - use
-s/-hoption for optional argument ofdiefunction
- keep
- use
${var##*/}instead ofbasenameto assignPROGvar 🎛️- faster, no subprocess fork
- use command
realpathinstead of functionportableReadLink🔗- faster and without losing portability
- use bash builtin
type -Pinstead ofwhichcommand, faster 🐚
🛠️ Refactor
- [
show-busy-java-threads]: rename global varUSER->WHOAMI👤 - [
uq]: use exponential operation instead of multiplication to calculate size 🧮 - [
c]: rename functions 🔡 - use
Shell Arithmeticcomparison instead ofConditional Expressions🔢 - use
=instead of==inConditional Expressions - use
||/&&instead of one branch/one lineif🎰 - inline
colorPrintfunction if only one caller - variable related refactors:
- extract
UNAMEvar 🔠 - rename var, use
COLOR_INDEXinstead ofCOUNT - remove
declarekeyword for global vars, more consistent - use upper-case var name for global readonly vars
- unset temp global vars after use
- remove unnecessary
{}when use var - remove
local nl=$'\n'declaration if only one usage
- extract
- small code cleanup
- remove unnecessary file descriptor number
1in redirections ➡️ - remove section comments for simple section
- improve/fix/add code comments
- remove unnecessary file descriptor number
📚 Documentation
- update manual pages links to manned.org 📚
- use
shellcheckitem doc link instead of prolixity comments ✨
🚜 Build/CI
- upgrade GitHub actions; add
dependabot.yml🤖 - upgrade
shunit2lib
Have Fun! 💕
2024-04-12
