Author: Stan Eisenstat
Subject: Re: [Cs323] Test Case 10
Date: Sunday, 13 Sep 2020, 10:20:35
> Message Posted By: Unknown
>
> Running "cat /c/cs323/Hwk1/Tests/t10.t" yields the following output:
>
> TESTS/Root/alpha/charlie
> TESTS/Root/alpha/delta
> TESTS/Root/alpha/delta/kilo
> TESTS/Root/alpha/delta/lima
> TESTS/Root/alpha/delta/mike
> TESTS/Root/alpha/foxtrot
> TESTS/Root/alpha/foxtrot/november
> TESTS/Root/alpha/foxtrot/oscar
> TESTS/Root/alpha/foxtrot/oscar/sierra
> TESTS/Root/alpha/golf
> 0 TESTS/Root/alpha/echo
>
> Is the last line supposed to be "0 TESTS/Root/alpha/echo"? If so could you
> provide another example of a case where this would occur?
Yes. If the current working directory contains files
named delta, echo, and foxtrot, the command
% ./fiend ./delta ./echo ./foxtrot -name echo -exec ls -s echo \; -o -print
outputs
./delta
0 echo
./foxtrot
If you sort this output and remove each leading ./ (as
Test #10 does), the result is
delta
foxtrot
0 echo
--Stan-
PREV
INDEX
NEXT