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 ( [id://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 (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". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-19 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found