zsh-workers
 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:
https://zsh.sourceforge.io/FAQ/zshfaq03.html#l19

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
   `eval':
+  COMMENT(CHAR(39) is a workaround for a bug in some versions of yodl)\
   verb(
-    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:
  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=A296BBBD-41A8-4895-B444-06F43443C4B5@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@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).