zsh-workers
 help / color / mirror / code / Atom feed
* A minor problem in FAQ03.html due to a yodl bug
@ 2022-06-09  7:05 Jun T
  0 siblings, 0 replies; only message in thread
From: Jun T @ 2022-06-09  7:05 UTC (permalink / raw)
  To: zsh-workers

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(é) 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-09  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  7:05 A minor problem in FAQ03.html due to a yodl bug Jun T

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