On 09/01/2023 00:02, Harald van Dijk wrote:
Hi, Consider alias "" In aliascmd(), we have while ((n = *++argv) != NULL) { if ((v = strchr(n+1, '=')) == NULL) { /* n+1: funny ksh stuff */
I had trusted that this "n+1: funny ksh stuff" logic which allows an alias to start with = was because ksh allows this, but I tested this now, it does not and I can find no evidence that it ever did. Maybe it would be good to just remove this exception, or if dash wants to keep it, document it as an ash extension rather than claim it as a ksh thing?
Cheers, Harald van Dijk