The scripts inside a shell script inherit access to STDIN when you call them, so if you have a shells script that only has cat
and you do ./script.sh < script.sh
then it’ll output the content of itself
The scripts inside a shell script inherit access to STDIN when you call them, so if you have a shells script that only has cat
and you do ./script.sh < script.sh
then it’ll output the content of itself