Reputation: 101
I deleted symbolic link which was pointing to x binary, recreated a same link pointing to y binary i.e. now it’s pointing to y binary instead of x binary.
When I am running binary from its location it’s giving correct result. Let say the binary is at location
$/tmp/value>./y Output is correct
If I go to another directory, /abd/def>/tmp/value/y Its giving me output of x binary
Can anyone tell me why I am getting some issue.
Upvotes: 0
Views: 105
Reputation: 7736
Perhaps value
dir inside tmp
dir is itself a symlink that changed inbetween? We're guessing here.
ls -la /tmp
ls -la /tmp/value
ls -la /abc/def
Upvotes: 1
Reputation: 43280
Psychic debugging suggests you moved the directory that was current directory for your shell (or one of its parents) and are therefore now very confused.
Upvotes: 0