coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Absolute symlink created relatively to the current directory


From: Rémy Lefevre
Subject: Absolute symlink created relatively to the current directory
Date: Thu, 4 Apr 2013 11:54:15 +0200

Hello,

the common way to create a symlink is to run the following command:

ln -s target_path link_path

where target_path is the relative or absolute path to which the symbolic link should point.

In the case of relative symlink, the provided target_path must be relative to the link directory and not to the current working directory (where the ln command is run).

To avoid this drawback, the --relative option have been added to ln since  coreutils-8.16. So, it's now possible to create a relative symlink by passing the target_path relative to the current working directory instead of the link directory.

However, this feature is only available for relative symlink and not for absolute one. So, my proposal is to add a --absolute option to ln, in order to allow absolute symlink creation by providing target_path relatively to the current directory.

Let me know your mind about this idea. In the case of acceptance, I could write a patch to add this feature.

Regards,

Rémy.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]