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

Re: comment block curiosity



On 2021-01-03 9:26 a.m., Bart Schaefer wrote:
On Sun, Jan 3, 2021 at 9:10 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
     alias startcomment=': <<COMMENTBLOCK'
     alias endcomment='COMMENTBLOCK'
You're overthinking this a bit, Ray.
That happens :)

Aliases do not expand inside here-documents.  Even if they did, the
ending delimiter must be found literally.
Ah!  I hate to say 'that's clear' but it's a no brainer that while I'm explicitly in a comment , alias expansion is ineffective!  I should have known that.  Ok, just tinkering where angels fear to tread, it wasn't important.  Comment blocks would be cool tho. Howbout:

#{#
foo
bar
baz
#}#







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