about summary refs log tree commit diff
path: root/Test/E01options.ztst
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-09-15 18:56:20 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-09-15 18:56:20 +0900
commit4fc5dc0292acd77f17281f451774ba2ca4203026 (patch)
tree25f6306c5a417ae135102ec02a3d725e9c14a10f /Test/E01options.ztst
parenteb738c793a6f9f293fc655c6aa87effc3dd9e44f (diff)
downloadzsh-4fc5dc0292acd77f17281f451774ba2ca4203026.tar.gz
zsh-4fc5dc0292acd77f17281f451774ba2ca4203026.tar.xz
zsh-4fc5dc0292acd77f17281f451774ba2ca4203026.zip
50629: do not use egrep in tests
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r--Test/E01options.ztst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index 2acbfd357..d38fbed74 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -651,7 +651,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