v0.4.1
January 17, 2026Platform Compatibility Patch
Critical platform compatibility fixes for macOS and Linux
v0.4.1 is a bug fix release addressing 5 critical platform compatibility issues discovered during the v0.4.0 QA audit. This release ensures nself works correctly on both macOS and Linux without any platform-specific failures.
Key Features
Bash 3.2 Compatibility
Fixed array declaration syntax that was incompatible with macOS default shell (Bash 3.2). Now uses PROGRESS_STEPS=() syntax.
Cross-Platform sed
Implemented safe_sed_inline() function to handle differences in sed -i behavior between macOS (BSD) and Linux (GNU).
Cross-Platform stat
Added safe_stat_mtime() and safe_stat_perms() functions for consistent file stat operations across platforms.
Portable timeout
Implemented safe_timeout() with fallback guards for systems where timeout command is unavailable (like macOS by default).
Portable output
Converted all echo -e usage to printf for consistent output formatting across shells and platforms.
Bug Fixes
- Fixed Bash 4+ array syntax incompatibility on macOS
- Fixed sed -i differences between macOS and Linux
- Fixed stat command syntax differences cross-platform
- Fixed timeout command unavailability on macOS
- Fixed echo -e portability issues