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

Re: comment block curiosity



On 2021-01-03 9:43 a.m., Bart Schaefer wrote:
On Sun, Jan 3, 2021 at 9:36 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
Comment blocks would be cool tho. Howbout:

#{#
foo
bar
baz
#}#
alias '#{#'=": <<'#}#'"

??

I see what your thinking.

   alias '#{#'=": <<'#}#'"

   echo staring comment

   #{#

   foo
   bar
   baz

   #}#

   echo back to code



gives:

   $ . test1
   staring comment
   test1:9: command not found: foo
   test1:10: command not found: bar
   test1:11: command not found: baz
   back to code

... bet it can be made to work tho.




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