Quantcast
Channel: Which shells support ANSI-C quoting? e.g. $'string' - Unix & Linux Stack Exchange
Browsing all 6 articles
Browse latest View live

Answer by Gilles for Do shells other than Bash and Zsh 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 Article



Do shells other than Bash and Zsh 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...

View Article

Answer by Arthur2e5 for Do shells other than Bash and Zsh support ANSI-C...

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 Article

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 Article

Answer 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 Article


Which 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
Browsing all 6 articles
Browse latest View live


Latest Images