Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: comment block curiosity
- X-seq: zsh-users 26325
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: comment block curiosity
- Date: Sun, 3 Jan 2021 13:31:35 -0800
- Archived-at: <https://zsh.org/users/26325>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-01/6fe26252-8145-4c46-1433-84c03674c47e%40eastlink.ca>
- In-reply-to: <CAH+w=7aRW__6_D8xC9-na_zRwWKZG9ZWgLZy1DduRT-pxdHzYA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <3e0ebc9c-5cbf-f89d-c0fe-220c8d295386@eastlink.ca> <CAH+w=7bDvFK5y-Dt-idLQWGzz=odOo+Rhb6Tp9E+-KPt-5gHGg@mail.gmail.com> <cdbe8b13-10b3-ca8d-58ac-5c639c79bc82@eastlink.ca> <CAH+w=7bCmn5ZxiTqvS7noxgoELpvnfCT_M_XzKx7Kdx-3-UAPg@mail.gmail.com> <dc5540b8-f573-2985-e69b-736fbffa5873@eastlink.ca> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author