To test that the single quotes are considered ordinary chars when double-quoting the parameter expansion: $ dash -c "a=\\'a\\'; echo \"\${a%'}\"" The result is surprising and non consistent with a non double-quoted expansion where the single-quotes act as quotes: $ dash -c "a=a%; echo \${a%'%'}" Additionally the manual states that the arg to substring processing is processed as an ordinary word (as probably POSIX too). Regards -- G.raud Meyer graud@xxxxxxx -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html