Re: While and for loops can read all filename when poc.txt have "*"

2020-12-22 Thread
(With apologies to the poster as I accidentally commented off-list ...) On 22/12/2020 07:42, ffvh gfff wrote: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wall > uname output: Linux kali 5.7.0-kali1-amd

Re: While and for loops can read all filename when poc.txt have "*"

2020-12-22 Thread Greg Wooledge
On Tue, Dec 22, 2020 at 03:42:46PM +0800, ffvh gfff wrote: > for i in $(cat ~/poc.txt);do echo $i;done https://mywiki.wooledge.org/DontReadLinesWithFor https://mywiki.wooledge.org/BashFAQ/001 https://mywiki.wooledge.org/BashPitfalls$pf1