Ubuntu – Bash output changes drastically when redirected to file
I had to write a program for Uni which prints some info about a file, or files in a directory recursively. The output of the file when called like ./listfiles xxx listfiles.c listfiles-example-dir /dev/tty is: xxx: No such file or…