Get the latest tech news
Modernish – A library for writing programs for POSIX-based shells and utilities
Modernish is a library for writing robust, portable, readable, and powerful programs for POSIX-based shells and utilities. - modernish/modernish
Modernish provides control character constants (read-only variables) with hexadecimal suffixes$CC01..$CC1F and$CC7F, as well as$CCe,$CCa,$CCb,$CCf,$CCn,$CCr,$CCt,$CCv(corresponding with printf backslash escape codes). The modernish chdir function calls cd in a way that takes care of all these issues automatically: it disables$CDPATH and special operand meanings, and resolves symbolic links by default. It introduces several powerful new loop constructs, as well as arbitrary code blocks with local settings, each of which has straightforward, intuitive operators for safely applying field splitting or pathname expansion – to specific command arguments only.
Or read this on Hacker News