已关闭
zipgrep 不支持-u参数 #31
sunyu-sunyu创建于  8月21日关闭于  9月7日
sunyu-sunyu
sunyu-sunyu成员
8月21日 创建

【缺陷描述】:请补充详细的缺陷问题现象描述

"zipgrep -u "keysdir" unzip_test.zip | grep ntp.conf || exit 26" 失败

一、缺陷信息

egrep: warning: egrep is obsolescent; using grep -E
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.

【缺陷所属的os版本】

NAME="openEuler"
VERSION="26.09 (DevStation)"
ID="openEuler"
VERSION_ID="26.09"
PRETTY_NAME="openEuler 26.09 (DevStation)"
ANSI_COLOR="0;31"

【内核版本】

【缺陷所属软件及版本号】

unzip-6.0-55.oe2609.aarch64

【环境信息】

无

【问题复现步骤】

【实际结果】

【期望结果】

命令正常执行,不会报错

【其他相关附件信息】

【缺陷详情及分析指导参考链接】

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
sunyu-sunyusunyu-sunyu成员
8月21日 关联了里程碑:openEuler-26.09-DevStation-round1
openeuler-ci-botopeneuler-ci-bot成员
8月21日 将 hubin1305 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
8月21日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
8月21日 添加了label:sig/Base-service
openeuler-ci-bot
openeuler-ci-bot成员
8月21日 评论:

Welcome To openEuler Community

Hey @sunyu-sunyu , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Base-service ,
and any of the maintainers: @dillon_chen, @licihua, @overweight, @shenyangyang, @xujing99, @zhujianwei001 ,
and any of the committers: @hubin1305, @jiayi0118, @luckky7, @lvying6, @znzju .

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
8月21日 评论:

以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
8月21日 添加了label:DEFECT/UNFIXED
Linux_zhang2024
8月24日 评论:

unzip_test.zip 这个压缩包 上传一下

实际上zipgrep 是一个脚本文件,执行过程中调用了 egrep 但是提醒信息是warning 并不影响使用
zipgrep 应该没有 -u 这个参数 或者说 -u 是什么含义?

likedislike
sunyu-sunyu
sunyu-sunyu成员
9月3日 评论:

已私聊提供

likedislike
Linux_zhang2024
9月4日 评论:

实际问题在于 grep -u 选项 ,社区已有明确提交
https://cgit.git.savannah.gnu.org/cgit/grep.git/commit/?id=ffb27fd22537326c9acfd14a717007483ce400c4
即 2609版本当前 grep 已不存在 -u 选项,所以执行会 失败

egrep: warning: egrep is obsolescent; using grep -E
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.

这个回显信息,是告知使用者 ,查看grep选项,并正确使用在列的参数

likedislike
sunyu-sunyu
sunyu-sunyu成员
9月7日 评论:

已确认,关闭

likedislike
sunyu-sunyusunyu-sunyu成员
9月7日 issue状态由 待办的 改变为 已验收
sunyu-sunyusunyu-sunyu成员
9月7日 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
9月7日 删除了label:DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
9月7日 评论:

@hubin1305 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
9月7日 评论:

@hubin1305 未对受影响版本排查/abi变化进行分析

likedislike