Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix my yodl code and another instance in arith.yo
- X-seq: zsh-workers 54406
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: dana <dana@xxxxxxx>
- Subject: PATCH: Fix my yodl code and another instance in arith.yo
- Date: Wed, 29 Apr 2026 02:38:54 +0200
- Archived-at: <https://zsh.org/workers/54406>
- In-reply-to: <20260428042442.11539-1-mikachu@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20260428042442.11539-1-mikachu@gmail.com>
I had blissfully forgotten about the LPAR()RPAR() stuff, and apparently I was not alone :). The formatting for the isnan example was horribly mangled.
---
Doc/Zsh/arith.yo | 2 +-
Doc/Zsh/mod_pcre.yo | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo
index 17eb3cc366..4a0709b27c 100644
--- a/Doc/Zsh/arith.yo
+++ b/Doc/Zsh/arith.yo
@@ -144,7 +144,7 @@ provided by the tt(zsh/mathfunc) module
or compare it to the string tt(NaN):
example(% zmodload zsh/mathfunc
-% (( isnan(0.0 / 0) )) && print is nan
+% LPAR()LPAR() isnan+LPAR()0.0 / 0+RPAR() RPAR()RPAR() && print is nan
is nan
% typeset -F f=nan && [[ $f == NaN ]] && print is nan
is nan)
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo
index 01b6d690a5..8458145dd6 100644
--- a/Doc/Zsh/mod_pcre.yo
+++ b/Doc/Zsh/mod_pcre.yo
@@ -81,7 +81,7 @@ that callouts are not available in the below -pcre-match test condition. It is
also likely not a good idea to call any pcre related builtins from a callout. As
an example, the following will print out `tt(bar)':
-example(pcre_compile 'foo(?C"echo ${.pcre.subject[${.pcre.pos},-1]}")'
+example(pcre_compile 'foo+LPAR()?C"echo ${.pcre.subject[${.pcre.pos},-1]}"+RPAR()'
pcre_match foobar)
)
enditem()
--
2.38.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author