'case' bug matching $'\\\\'

Martijn Dekker <[email protected]> Sun, 21 Jun 2026 03:32:19 +0100
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
The quoted strings '\\' and $'\\\\' are identical, but the 'case' statement in 
the current git version of dash does not match them as such.

Reproducer:

case '\\' in
( $'\\\\' )	echo ok ;;
( * )		echo WRONG ;;
esac


-- 
||	modernish -- harness the shell
||	https://github.com/modernish/modernish
||
||	KornShell lives!
||	https://github.com/ksh93/ksh