New
๐ 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