🐌 v2.5.4 🍬🎰
☘️ Features
- [
c
]: ensure using command onPATH
, and check the command existence onPATH
👣 - [
coat/taoc
]: add--help/--version
options 🚩
🍬 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
timestamp
var to avoid inconsistency ⌚️
- unify error message format and refactor related functions ℹ️
- keep
usage
function simple - use
-s
/-h
option for optional argument ofdie
function
- keep
- use
${var##*/}
instead ofbasename
to assignPROG
var 🎛️- faster, no subprocess fork
- use command
realpath
instead of functionportableReadLink
🔗- faster and without losing portability
- use bash builtin
type -P
instead ofwhich
command, 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 Arithmetic
comparison instead ofConditional Expressions
🔢 - use
=
instead of==
inConditional Expressions
- use
||/&&
instead of one branch/one lineif
🎰 - inline
colorPrint
function if only one caller - variable related refactors:
- extract
UNAME
var 🔠 - rename var, use
COLOR_INDEX
instead ofCOUNT
- remove
declare
keyword 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
1
in 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
shellcheck
item doc link instead of prolixity comments ✨
🚜 Build/CI
- upgrade GitHub actions; add
dependabot.yml
🤖 - upgrade
shunit2
lib
Have Fun! 💕
2024-04-12