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

Re: comment block curiosity



On 2021-01-03 10:50 a.m., Bart Schaefer wrote:

function test1 ()
{

alias START_COM=": <<'END_COM'"

echo staring comment

START_COM

foo
bar
baz

END_COM

echo back to code

}

$ . test1; test1
staring comment
back to code

Works ... dare I say ... perfectly :-)

Seems you can't use any characters that are special to the shell tho, it gets confused.





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