bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: ffvh gfff
Subject: While and for loops can read all filename when poc.txt have "*"
Date: Tue, 22 Dec 2020 15:42:46 +0800

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-amd64 #1 SMP Debian 5.7.6-1kali2
(2020-07-01) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.1
Patch Level: 0
Release Status: release

command line:
cat poc.txt | while read i; do echo $i;done

and

for i in $(cat ~/poc.txt);do echo $i;done

poc.txt have "*" ,then above loops will read all ~/ filename.
Also i submit report through 'bashbug' , here is for the working POC.

Attachment: poc.txt
Description: Text document

Attachment: POC_Bash.mp4
Description: video/mp4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]