PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] -name matching /
Date: Thursday, 17 Sep 2020, 20:41:16


    > Message Posted By: Unknown
    >
    > "find / -maxdepth 0 -name ''" outputs nothing, but
    > "/c/cs323/Hwk1/fiend / -maxdepth 0 -name ''" outputs "/".
    >
    > Does it matter which one we output?
    ...
    > To be clear, the arg to -name is '' (two single quotes).

Short answer: No

Long Answer:  The question is what is the local name of
the root directory /.  If it is the empty string, then
"" should match it (as fiend does).  If it is /, then
"" should not match it (as find does).  But in the latter
case, how can the local name have a / in it.

Thanks for pointing this out.

--Stan-
PREV INDEX NEXT