Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Allow '=' aliases to be used with -L



On Mar 23,  5:29pm, Stephane Chazelas wrote:
}
} FWIW, another corner case:
} 
} $ aliases[(e)]=whatever

That's actually not relevant at all to what follows, except that it
creates the string for "eval".

} Actually, I didn't quite expect that error message, I would have thought
} 
} echo ''=foo
} 
} would be the same as
} 
} echo '=foo'

The problem here is that zsh lacks a representation for "quoted nothing".
The empty string gets removed entirely from the word rather than being
left behind to let the later parse know that something was there that
disappeared.

I can't think of an easy way to fix this without some significant lexing
changes, but perhaps someone else has an idea.



Messages sorted by: Reverse Date, Date, Thread, Author