New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should I be able to change the temporary directory? #5949
Comments
From @briandfoytmpdir doesn't appear to change directories. This is probably why I It's not documented to do that in the various IO::Spec modules, but I was my $dir = '/Users/brian'; put "$dir is a dir: " ~ $dir-io.d; tmpdir( $dir ) It looks like everything should work, but it doesn't: /Users/brian is a dir: True Or, assigning to it directly: my $dir = '/Users/brian'; put "$dir is a dir: " ~ $dir-io.d; $*TMPDIR = $dir; It says I can't assign to $*TMPDIR. How is it that I can't assign to Cannot modify an immutable IO::Path Try it with my: my $dir = '/Users/brian'; put "$dir is a dir: " ~ $dir-io.d; my $*TMPDIR; tmpdir( $dir ) Now it's a different sort of error. This kinda makes sense because there's /Users/brian is a dir: True Use temp instead, and it's a different error (despite that temp was my $dir = '/Users/brian'; put "$dir is a dir: " ~ $dir-io.d; temp $*TMPDIR; tmpdir( $dir ) Now it's a different sort of error: /Users/brian is a dir: True |
From @zoffixznetThank you for the report. The issues in this ticket have been resolved: - "tmpdir doesn't appear to change directories" Side note: [1] rakudo/rakudo@b62d1a7 -- IO grant |
The RT System itself - Status changed from 'new' to 'open' |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#130455 (status was 'resolved')
Searchable as RT130455$
The text was updated successfully, but these errors were encountered: