I have built my app for different architectures and would like to create a "dynamic symlink" which takes me to the right version based on a variable.
If the machine I am currently logged in to, is x86, then the symlink should take me to that build.
A mocked example of what I want to do:
$ uname -i x86_64 $ ls -ltr lrwxr-xr-x 1 dogbane gg 4 Feb 16 15:40 mylink -> @sys/ drwxrwxr-x 2 dogbane gg 2048 Feb 16 15:40 x86_64/ drwxrwxr-x 2 dogbane gg 2048 Feb 16 15:40 i386/ $ cd mylink $ pwd -P ~/x86_64
Is this possible?
I know I can use
cd $(uname -i), but want something simpler.