代码拉取完成,页面将自动刷新
From da28a312351002804d198d796ab116757f22de39 Mon Sep 17 00:00:00 2001
From: kianli <kianli@tencent.com>
Date: Mon, 11 Sep 2023 20:59:56 +0800
Subject: [PATCH] Do not use egrep in E01options.ztst
Upstream-commit: 4fc5dc0292acd77f17281f451774ba2ca4203026
Signed-off-by: kianli <kianli@tencent.com>
---
Test/E01options.ztst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index cfe2c75..757c6a6 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -649,7 +649,7 @@
>noktarg1
>0 1
- showopt() { setopt | egrep 'localoptions|ksharrays'; }
+ showopt() { echo ${(FM)${(@f)"$(setopt)"}:#(localoptions|ksharrays)*} }
f1() { setopt localoptions ksharrays; showopt }
f2() { setopt ksharrays; showopt }
setopt kshoptionprint
--
2.30.2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。