Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
A minor problem in FAQ03.html due to a yodl bug
- X-seq: zsh-workers 50356
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: A minor problem in FAQ03.html due to a yodl bug
- Date: Thu, 9 Jun 2022 16:05:51 +0900
- Archived-at: <https://zsh.org/workers/50356>
- List-id: <zsh-workers.zsh.org>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author