Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Good example. It cleared my doubt. So these cases are handled in a special way to avoid infinite loops. right? Commented Oct 7, 2014 at 1:42
  • 1
    As we have a limited way of allowing hard links for directories i.e ".." and "." we will not reach a infinite loop and so we would not require any special ways to avoid those as they will not happen :) Commented Oct 8, 2014 at 3:20
  • @GGill There is is in fact special handling--programs that descend directory trees check the entries of a directory for the names "." and ".." don't process them, as that would result in an infinite loop. Commented Aug 22, 2023 at 3:12