Example:
cat < test.txt
- Is the content of the file
test.txt
written/passed to stdin of thecat
, and then thecat
reads its stdin?
OR
- Does the file
test.txt
itself become the stdin of thecat
? In other words, is the stdin of thecat
changed totest.txt
by setting the file descriptor (fd) of the text file to 0?