about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-03-05 14:16:31 -0800
committerBart Schaefer <schaefer@zsh.org>2023-03-05 14:16:31 -0800
commitea0bd72dd84a783355969e0a9a1584ce7b1ea08b (patch)
tree2a8200e5f2f986af6a77407514a70931866e1a17 /Src/utils.c
parent4bc1f6e0d2b60976b9c0412d72097ee1c812139b (diff)
downloadzsh-ea0bd72dd84a783355969e0a9a1584ce7b1ea08b.tar.gz
zsh-ea0bd72dd84a783355969e0a9a1584ce7b1ea08b.tar.xz
zsh-ea0bd72dd84a783355969e0a9a1584ce7b1ea08b.zip
51485: module for several ksh93 features, mostly enabled only in ksh emulation.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 1393ecb13..8ce9a175d 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -4319,7 +4319,7 @@ itype_end(const char *ptr, int itype, int once)
 {
     if (itype == INAMESPC) {
 	itype = IIDENT;
-	if (once == 0 && !isset(POSIXIDENTIFIERS)) {
+	if (once == 0 && (!isset(POSIXIDENTIFIERS) || EMULATION(EMULATE_KSH))) {
 	    /* Special case for names containing ".", ksh93 namespaces */
 	    char *t = itype_end(ptr + (*ptr == '.'), itype, 0);
 	    if (t > ptr+1) {