help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: A minor problem in FAQ03.html due to a yodl bug
Date: Thu, 9 Jun 2022 16:05:51 +0900	[thread overview]
Message-ID: <A296BBBD-41A8-4895-B444-06F43443C4B5@kba.biglobe.ne.jp> (raw)

I've noticed Zsh FAQ on sourceforge has a minor problem:

Other way of causing word splitting include a judicious use of `eval':
    sentence="Longtemps, je me suis couch\+NOTRANS(&eacute;) de bonne heure."

It seems this is due to a bug of (some versions of) yodl.
yodl-3.05.00 has this problem, but version 4.04.02 ((Ubuntu 22.04)
correctly outputs "couch\\'e". I don't know when this bug was
introduced and when it has been fixed.

A workaround is to replace either \ or ' by CHAR().

Do I need to push this patch?
Or is it enough to use the latest versions of yodl?

diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index 8bd7262fe..8a6895454 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -1055,8 +1055,9 @@ label(31)
   Other ways of causing word splitting include a judicious use of
+  COMMENT(CHAR(39) is a workaround for a bug in some versions of yodl)\
-    sentence="Longtemps, je me suis couch\\'e de bonne heure."
+    sentence="Longtemps, je me suis couch\\CHAR(39)e de bonne heure."
     eval "words=($sentence)"
   after which $words is an array with the words of $sentence (note

                 reply	other threads:[~2022-06-09  7:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

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

  git send-email \
    --in-reply-to=A296BBBD-41A8-4895-B444-06F43443C4B5@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    --subject='Re: A minor problem in FAQ03.html due to a yodl bug' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).