From ed63888d8bd92d3f60da2dfb87c0dce0ba013c59 Mon Sep 17 00:00:00 2001 From: tmyksj <33417830+tmyksj@users.noreply.github.com> Date: Thu, 28 Nov 2024 19:56:39 +0900 Subject: [PATCH] =?UTF-8?q?`Dir#chdir`=20=E3=81=AE=20`~`=20=E3=81=AE?= =?UTF-8?q?=E5=B1=95=E9=96=8B=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E8=A8=98?= =?UTF-8?q?=E8=BF=B0=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- refm/api/src/_builtin/Dir | 3 +++ 1 file changed, 3 insertions(+) diff --git a/refm/api/src/_builtin/Dir b/refm/api/src/_builtin/Dir index 71f31f3c9a..dbccf70d6b 100644 --- a/refm/api/src/_builtin/Dir +++ b/refm/api/src/_builtin/Dir @@ -152,6 +152,9 @@ Dir.chdir("/tmp") do p Dir.pwd #=> "/tmp" end p Dir.pwd #=> "/var/spool/mail" + +# ~ は展開されない +Dir.chdir("~/.ssh") # => Errno::ENOENT #@end --- chroot(path) -> 0