【标题描述】grep配置多个-f -,也只读取一次stdin
【环境信息】
【问题复现步骤】
必现问题
1、创建模式文件test13,分别写入test13, 创建查询目标文件grep_test,写入test111333333
2、grep -f - -f - -f - grep_test,输入test1,回车,ctrl+D,test2,回车,ctrl+D,test3,回车,ctrl+D,有预期结果1
【预期结果】
预期结果1:返回值为0,查询到test111
根据配置的-f -数目读取stdin
【实际结果】
即使配置多个-f -,也只读取一次stdin
【附件信息】
可以合入https://git.savannah.gnu.org/cgit/grep.git/commit?id=ad6de316cca655cd8b0b20b3e9dd18e7e98e443a 补丁解决此问题
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论