From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: comment block curiosity
Date: Sun, 3 Jan 2021 13:31:35 -0800 [thread overview]
Message-ID: <6fe26252-8145-4c46-1433-84c03674c47e@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7aRW__6_D8xC9-na_zRwWKZG9ZWgLZy1DduRT-pxdHzYA@mail.gmail.com>
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.
next prev parent reply other threads:[~2021-01-03 21:32 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
2021-01-03 18:50 ` Bart Schaefer
2021-01-03 21:17 ` Ray Andrews
2021-01-03 21:31 ` Ray Andrews [this message]
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=6fe26252-8145-4c46-1433-84c03674c47e@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).