Re: [PATCH] alias: aliascmd: refuse uninvokable aliases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17/12/2022 19:07, наб wrote:
See standards quote within, but the fun bit is:
   alias "a'b=c" "ls&id=cd"; alias
outputs
   ls&id='cd'
   a'b='c'
neither of which is What You Want, and also you can't invoke them
because you need to escape the quote/&/whatever, which disables
alias processing. Forbid the minimum broken set.

I didn't realise this at the time, and since it's not getting merged it's not very important, but for completeness: this patch also rejects some aliases that are invokable:

  alias $=echo
  $ hello world

This is because whether $ is special depends on the character that follows.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux