mirror of
https://github.com/zsh-users/zsh
synced 2024-10-06 16:09:31 +00:00
unposted: Improve documentation and add regression test for workers/47745
This commit is contained in:
parent
d96c898101
commit
78cf455871
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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="Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ θεὸς ἦν ὁ λόγος."
|
||||
|
|
Loading…
Reference in a new issue