On Fri, 30 Dec 2016 14:06:51 -0800, comdog wrote:
> indir is in S16 but not documented elsewhere, but it's a really cool
> feature that I think many people will find useful. It's certainly much
> more convenient
> 
> indir '/Users/brian', {
>     put "Directory is $*CWD";
>     }
> 
> indir '/etc', {
>     put "Directory is $*CWD";
>     }
> 
> The second one fails with
> 
> Failed to change the working directory to '/etc': did not pass 'd r w'
> test
> 
> I don't know why it insists that the directory be writable, expecially
> when chdir itself is not as strict. I often change to a directory
> where
> I want to merely read files, so I'd like to see the test relaxed.
> 
> And, since its undocumented, nobody else knows that it does this
> currently. :)


Thank you for the report. This ticket is now resolved.

`indir` is now part of the Perl 6 language. Please consult with the 
documentation for its behaviour:
https://docs.perl6.org/routine/indir

Reply via email to