![]() The history modifier A turns the given path into an absolute path and resolves all symbolic links. A colon : in the list of glob qualifiers starts a list of history modifiers. it's equivalent to GNU readlink -f, not to a plain readlink).Įxplanation: the parentheses (…) at the end of a word surround a list of glob qualifiers. This prints the absolute path to the file with all symbolic links resolved (i.e. Or more robustly, in case there are backslashes in the path: print -lr - /usr/local/bin/python3(:A) They just print the symbolic links path for me: FantasticMrFox:bin robert$ pwd -P python3įantasticMrFox:bin robert$ find `pwd -P` -name python3 outputting the full path to the symbolic link). The problem is that these don't seem to work on OS X the way that people describe them working on linux (i.e. I've found some tidbits here and there regarding use of pwd -P and the find utility to do this. ![]() However, I can't seem to get any of the command line tools to resolve that path and display the actual path to python3. /./Library/Frameworks/amework/Versions/3.1/bin/python3 If I do ls -lhaG I see -> and the relative path to the right of the symlinks: lrwxr-xr-x 1 root wheel 69B Dec 7 22:29 python3 ->. There's some weird behavior surrounding this. I was looking at the executables in /usr/local/bin and they are all symbolic links to. I have a tangled mess of python installations on my laptop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |