↧
Answer by Mingye Wang for Which shells support ANSI-C quoting? e.g. $'string'
The degree of $'...' support also needs to be taken into consideration when porting. The POSIX Folks' proposal to put this in POSIX sh mentions one in particular:stephane: ksh93 is the shell $'...'...
View ArticleAnswer by Gilles 'SO- stop being evil' for Which shells support ANSI-C...
$'…' is a ksh93 feature that is also present in zsh, bash, mksh, FreeBSD sh and in some builds of BusyBox sh (BusyBox ash built with ENABLE_ASH_BASH_COMPAT). It isn't present in the POSIX sh language...
View ArticleWhich shells support ANSI-C quoting? e.g. $'string'
I have a shell script that uses the following to print a green checkmark in its output:col_green="\e[32;01m"col_reset="\e[39;49;00m"echo -e "Done ${col_green}✓${col_reset}"After reading about Bash's...
View Article