zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: comment block curiosity
Date: Sun, 3 Jan 2021 10:30:47 -0800	[thread overview]
Message-ID: <dc5540b8-f573-2985-e69b-736fbffa5873@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7bCmn5ZxiTqvS7noxgoELpvnfCT_M_XzKx7Kdx-3-UAPg@mail.gmail.com>

On 2021-01-03 9:43 a.m., Bart Schaefer wrote:
> On Sun, Jan 3, 2021 at 9:36 AM Ray Andrews <rayandrews@eastlink.ca> 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.


  reply	other threads:[~2021-01-03 18:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 17:09 Ray Andrews
2021-01-03 17:26 ` Bart Schaefer
2021-01-03 17:36   ` Ray Andrews
2021-01-03 17:43     ` Bart Schaefer
2021-01-03 18:30       ` Ray Andrews [this message]
2021-01-03 18:50         ` Bart Schaefer
2021-01-03 21:17           ` Ray Andrews
2021-01-03 21:31           ` Ray Andrews
2021-01-04  6:10             ` Daniel Shahaf
2021-01-04 17:09               ` Ray Andrews
2021-01-04 19:28                 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dc5540b8-f573-2985-e69b-736fbffa5873@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).