[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .CW usage by a new user
From: |
Russ Allbery |
Subject: |
Re: .CW usage by a new user |
Date: |
Thu, 05 Sep 2024 09:17:54 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
"isf (Jordán)" <isf@member.fsf.org> writes:
> Thats literally what Im trying and the output is something like this:
> Input:
> .CW ""$ echo foo bar""
> Ouput:
> echo$
You need three quotes, not two. Semantically, the whole macro argument is
enclosed in double quotes, and then the double quotes within that
double-quoted string have to be escaped, which *roff does by doubling
them. So:
.CW """$ echo foo bar"""
With only two double quotes, I think *roff parses that as an empty string.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>