Skip to content

weird ${lines} behavior #151

@joshfactorial

Description

@joshfactorial

When I try to check against lines, I get weird behavior. It is picking up the names of all the files in the directory where the test script lives. If I echo out the output variable, it looks perfect. If I echo out the lines varible with a for loop, it prints the names of all the files in the directory

for item in ${lines[@]}
do
echo "$item" >&3
done

filename1.sh
filename2.sh
actual output1
actual output2
filname1.sh
filname2.sh
actual output2

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions