Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: create a relative symlink

by Anonymous Monk
on Dec 18, 2019 at 03:24 UTC ( #11110315=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11110315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2020-10-26 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (251 votes). Check out past polls.

    Notices?