I am receiving an error from an application I am running.
The error looks like this:
john@john-replacement:~/Desktop/yarbu-1.4.8/bin$ sudo yarbu-engine --VERBOSE
/usr/local/bin/yarbu-engine: line 996: cd: /usr/local/bin/../../etc/yarbu/conf/default: No such file or directory
What do the dots mean in /usr/local/bin/../../etc/
?
cd ..
, which sanitizes the path usingrealpath
. If one of the path components of/usr/local/bin
is a symbolic link which points somewhere else, thenrealpath
sanitization will not point to the same directory. e.g. if/usr/local
is a synlink to/opt/unspecified
,/usr/local/bin/../../etc/yarbu/conf/default
is resolved as/opt/etc/yarbu/conf/default
, butrealpath
sanitizes it as/usr/etc/yarbu/conf/default
. Just nitpicking here. In contrast,ls ../../etc/yarbu/conf/default
while in/usr/local/bin
works. – BatchyX Dec 27 '12 at 21:16