[#109207] [Ruby master Feature#18915] New error class: NotImplementedYetError or scope change for NotImplementedYet — Quintasan <noreply@...>
Issue #18915 has been reported by Quintasan (Michał Zając).
18 messages
2022/07/14
[ruby-core:109241] [Ruby master Feature#18925] Add `FileUtils.ln_sr` to create symbolic links relative to link location
From:
"nobu (Nobuyoshi Nakada)" <noreply@...>
Date:
2022-07-19 08:53:41 UTC
List:
ruby-core #109241
Issue #18925 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Feature #18925: Add `FileUtils.ln_sr` to create symbolic links relative to link location https://bugs.ruby-lang.org/issues/18925 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal ---------------------------------------- Usual `File.symlink` (and `ln -s`) creates a symbolic link as the given argument. GNU coreutils `ls` has `-r` (`--relative`) option, which resolves the source path relative to the current directory as relative to the link location. ```shell-session $ mkdir src dest $ echo ok > src/x $ ln -s src/x dest $ readlink dest/x src/x $ cat dest/x cat: dest/x: No such file or directory $ rm dest/x $ ln -sr src/x dest $ readlink dest/x ../src/x $ cat dest/x ok ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>