11 Star 0 Fork 14

src-openEuler / grep

 / 详情

grep配置多个-f -,也只读取一次stdin

已完成
缺陷
创建于  
2022-01-21 19:30

【标题描述】grep配置多个-f -,也只读取一次stdin
【环境信息】
输入图片说明
【问题复现步骤】
必现问题
1、创建模式文件test13,分别写入test13, 创建查询目标文件grep_test,写入test111333
2、grep -f - -f - -f - grep_test,输入test1,回车,ctrl+D,test2,回车,ctrl+D,test3,回车,ctrl+D,有预期结果1
【预期结果】
预期结果1:返回值为0,查询到test111
333
根据配置的-f -数目读取stdin
输入图片说明
【实际结果】
即使配置多个-f -,也只读取一次stdin
输入图片说明
【附件信息】
可以合入https://git.savannah.gnu.org/cgit/grep.git/commit?id=ad6de316cca655cd8b0b20b3e9dd18e7e98e443a 补丁解决此问题

评论 (1)

tttttty 创建了缺陷

Hi tttttty, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @hexiaowen , @syyhao , @chenjialong , @zhujianwei001 , @hanxinke , @yanan-rock , @Monday , @朱春意 , @谢志鹏 , @BigSkySea

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/grep.git
git@gitee.com:src-openeuler/grep.git
src-openeuler
grep
grep

搜索帮助