crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Fix std/dir_spec.cr when current path contains symlinks.

Open dmgk opened this issue 2 years ago • 0 comments

getcwd(3) always returns path with all symlinks resolved, but the spec calls pwd shell builtin that returns a "logical" path that may contain symlinks. Call pwd utility instead and pass "-P" to make sure that it resolves symlinks and returns a "physical" path.

Fixes #12325

dmgk avatar Jul 26 '22 21:07 dmgk