-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[io grant] Improve &chdir, &indir, and IO::Path.chdir
- Deprecate `:$test` param - Use :r, :w, :d, :x named args for tests - Use :d test as default instead of :d + :r - Make &chdir and &indir propagate Failure, instead of throwing - Fix incorrect dir used in &indir if a relative IO::Path is given after a change to $*CWD, since IO::Path.Str does not use its $!CWD - Fix (or reduce?) race condition in `indir` for relative paths: - old version took Str() $path and used $*CWD in its body to chdir to that $path, creating a race condition where the changed $*CWD made $path be relative to the wrong thing - new version takes IO(), so no race if an IO::Path is given and a bit smaller race if a Str is given, as the $*CWD is used during coersion and not in body
- Loading branch information
1 parent
3236823
commit a0ef2ed
Showing
2 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters