[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: REVIEW REQUEST - user manual generation
From: |
Gavin Smith |
Subject: |
Re: Fwd: REVIEW REQUEST - user manual generation |
Date: |
Fri, 3 Jun 2016 17:47:22 +0100 |
On 3 June 2016 at 17:32, Andreas Schwab <address@hidden> wrote:
> Gavin Smith <address@hidden> writes:
>
>> Apparently it should be \NEWLINE, where NEWLINE is a newline
>> character. Quoting is tricky, because \NEWLINE is interpreted as a
>> line continuation except in single quotes or if the backslash is
>> escaped. We are in single quotes, but those single quotes are within
>> backquotes.
>
> The latter is no longer an issue if you switch to $().
You're right:
$ echo '\
> x'
\
x
($ is main prompt, > secondary prompt.) The newline is output here.
Trying to wrap this command:
With $():
$ echo "$(echo '\
> x')"
\
x
This is the expected output.
Using `` instead:
$ echo "`echo '\
> x'`"
x
The \ has gotten lost somewhere.
- Re: Fwd: REVIEW REQUEST - user manual generation, Gavin Smith, 2016/06/01
- Re: Fwd: REVIEW REQUEST - user manual generation, Vincent Belaïche, 2016/06/03
- Re: Fwd: REVIEW REQUEST - user manual generation, Vincent Belaïche, 2016/06/04
- Re: Fwd: REVIEW REQUEST - user manual generation, Vincent Belaïche, 2016/06/04
- Re: Fwd: REVIEW REQUEST - user manual generation, Gavin Smith, 2016/06/04
- Re: Fwd: REVIEW REQUEST - user manual generation, Vincent Belaïche, 2016/06/06
- Re: Fwd: REVIEW REQUEST - user manual generation, Vincent Belaïche, 2016/06/12
- Re: Fwd: REVIEW REQUEST - user manual generation, Gavin Smith, 2016/06/13