PREV INDEX NEXT

Author: Unknown
Subject: Questions about Solution Script
Date: Friday, 04 Sep 2020, 20:46:02

When I run "/c/cs323/Hwk1/fiend /file1 /file2" and my directory doesn't contain either file1 or file2, the output out the Hwk1/fiend script is:

fiend: stat(/file1) Failed
fiend: stat(/file2) Failed

From the pset, it seems like the program is supposed to exit after the first fail, but I wanted to confirm.


Second, when I run "/c/cs323/Hwk1/fiend -exec echo {} '>' bar \;", I dont get the expected result. I thought this sohuld print "." into bar, but it actually prints a random file thats two subdirectories deep. Is that expected?
PREV INDEX NEXT