Answer by Achintya Guchhait for What's a "canonical path"?
The most issues with canonical paths occur when you are passing the name of a dir and not file. For file, if we are providing absolute path that is also the canonical path. But for dir it means...
View ArticleAnswer by Cratylus for What's a "canonical path"?
What a canonical path is (or its difference from an absolute path) is system dependent. Typically if a (full) path contains aliases, shortcuts or symbolic links the canonical path resolves all these...
View ArticleAnswer by alfasin for What's a "canonical path"?
A good way to define a canonical path will be: the shortest absolute path (short, in the meaning of string-length). This is an example of the difference between an absolute path and a canonical path:...
View ArticleAnswer by Kerrek SB for What's a "canonical path"?
The whole point of making anything "canonical" is so that you can compare two things. For example, both ../../here/bar/x and ./test/../../bar/x may refer to the same location, but you can't do a...
View ArticleWhat's a "canonical path"?
That's a theory question. I've searched over the internet with no satisfying luck, I just want to understand what's this jargon. I've seen examples of Java, JSON, etc but I couldn't find in Google nor...
View ArticleAnswer by tlake29 for What's a "canonical path"?
A good definition of a canonical path is given in the documentation of readlink in GNU Coreutils. It is specified that 'Canonicalize mode' returns an equivalent path that doesn't have any of these...
View Article