http://qs321.pair.com?node_id=11110315


in reply to create a relative symlink

Does any operating system actually support a relative symlink?

Replies are listed 'Best First'.
Re^2: create a relative symlink
by choroba (Cardinal) on Dec 19, 2019 at 15:10 UTC
    Yes. In linux, you can easily create one:
    ln -s .. parent

    If you then move the link somewhere else, e.g. with

    mv parent ..

    it will now point to its new parent directory.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      Yes. In linux,

      Make that any POSIX-compatible system. A limit is the filesystem: The respective native filesystems generally support symlinks, but e.g. FAT does not.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)