about summary refs log tree commit diff
diff options
context:
space:
mode:
authordana <dana@dana.is>2021-03-23 00:26:21 -0500
committerdana <dana@dana.is>2021-03-23 00:26:21 -0500
commit78cf45587100965553a879fc8b026294c79bd756 (patch)
treec93507e18985d9fb5f9cd5a33fba25a5d0fdf031
parentd96c8981011294cfef62cd1f8d76b2a982957ca4 (diff)
downloadzsh-78cf45587100965553a879fc8b026294c79bd756.tar.gz
zsh-78cf45587100965553a879fc8b026294c79bd756.tar.xz
zsh-78cf45587100965553a879fc8b026294c79bd756.zip
unposted: Improve documentation and add regression test for workers/47745
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/expn.yo3
-rw-r--r--Test/D07multibyte.ztst7
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cef6370b..066a806c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-03-23  dana  <dana@dana.is>
 
+	* unposted: Doc/Zsh/expn.yo, Test/D07multibyte.ztst: Improve
+	documentation and add regression test for workers/47745
+
 	* 47745: Stephane Chazelas: Src/utils.c: Fix [:IDENT:] vs
 	posixidentifiers
 
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 926e9b48b..c218ded05 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2134,7 +2134,8 @@ is not sensitive to the locale:
 startitem()
 item(tt([:IDENT:]))(
 The character is allowed to form part of a shell identifier, such
-as a parameter name
+as a parameter name; this test respects the tt(POSIX_IDENTIFIERS)
+option
 )
 item(tt([:IFS:]))(
 The character is used as an input field separator, i.e. is contained in the
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 9375dcda4..7f046525a 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -178,6 +178,13 @@
 >3
 ?(eval):1: command not found: hähä=3
 
+  expr='[[ é = [[:IDENT:]] ]]'
+  ( unsetopt posix_identifiers; eval $expr && echo ok unset )
+  ( setopt posix_identifiers;   eval $expr || echo ok set )
+0:Regression test for workers/47745
+>ok unset
+>ok set
+
   foo="Ølaf«Ødd«øpénëd«ån«àpple"
   print -l ${(s.«.)foo}
   ioh="Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ θεὸς ἦν ὁ λόγος."