Example: suppose I am testing a program which reads in a directory tree. I have my test driver program create a temporary directory, with multiple files and subdirectories in it. I can’t use /dev/fd for that, since it doesn’t support directories
Related example: testing a program which expects a file name to match a certain pattern; can’t do that because /dev/fd file names are just numbers
Related example: testing a program which expects a file name to match a certain pattern; can’t do that because /dev/fd file names are just numbers