4 Star 1 Fork 5

OpenCloudOS Stream/zsh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
5000-Do-not-use-egrep-in-E01options-ztst.patch 818 Bytes
一键复制 编辑 原始数据 按行查看 历史
kianli 提交于 2023-09-11 19:43 . Do not use egrep in E01options.ztst
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/zsh.git
git@gitee.com:opencloudos-stream/zsh.git
opencloudos-stream
zsh
zsh
master

搜索帮助