Control: tags -1 + upstream patch
Control: forwarded 
https://lore.kernel.org/dash/20221217190705.atfwacsgggtaf...@tarta.nabijaczleweli.xyz/t/

Indeed; escaping of any kind (quoting or backslash) disables alias
expansion. What's even more fun is that if you do
  alias "a'b=c" "ls&id=cd"
then alias will give you
  ls&id='cd'
  a'b='c'
which is even better since it'll run code when evaled back.

I posted a patch to dash@ (archived at forwarded-to) that fixes this
by refusing characters that must be quoted in the name bit of the alias,
so the invocation above will fail with
  alias: a'b: invalid name
  alias: ls&id: invalid name
and commit no aliases.

наб

Attachment: signature.asc
Description: PGP signature

Reply via email to