Navigation Menu

Skip to content
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

dir '/' results begin with 2 slashes #3593

Closed
p6rt opened this issue Nov 27, 2014 · 8 comments
Closed

dir '/' results begin with 2 slashes #3593

p6rt opened this issue Nov 27, 2014 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Nov 27, 2014

Migrated from rt.perl.org#123308 (status was 'resolved')

Searchable as RT123308$

@p6rt
Copy link
Author

p6rt commented Nov 27, 2014

From @raydiak

perl6 -e 'say dir "/"'

gives

"//opt".IO "//home".IO ...

Haven't noticed doubling slashes in any situations besides '/' so far

This is perl6 version 2014.11-30-gac27d2f built on MoarVM version 2014.11-45-ge1016ad

@p6rt
Copy link
Author

p6rt commented Nov 28, 2014

From @usev6

This was fixed by lizmat++ with commit rakudo/rakudo@482cc32e89

$ perl6 -e 'say dir "/"'
"/.snap".IO "/dev".IO "/tmp".IO ...

But I wonder if the following test would work on Windows also​:

$ PERL6LIB=lib ./perl6 -e 'use Test; my $res = dir "/"; ok $res !~~ m/ "/" ** 2 /, "dir \"/\" results do not begin with two slashes"'
ok 1 - dir "/" results do not begin with two slashes

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 28, 2014

From @usev6

This was fixed by lizmat++ with commit rakudo/rakudo@482cc32e89

$ perl6 -e 'say dir "/"'
"/.snap".IO "/dev".IO "/tmp".IO ...

But I wonder if the following test would work on Windows also​:

$ PERL6LIB=lib ./perl6 -e 'use Test; my $res = dir "/"; ok $res !~~ m/ "/" ** 2 /, "dir \"/\" results do not begin with two slashes"'
ok 1 - dir "/" results do not begin with two slashes

@p6rt
Copy link
Author

p6rt commented Nov 28, 2014

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 28, 2014

From @lizmat

On 28 Nov 2014, at 22​:00, Christian Bartolomaeus via RT <bugs-comment@​bugs6.perl.org> wrote​:

This was fixed by lizmat++ with commit rakudo/rakudo@482cc32e89

$ perl6 -e 'say dir "/"'
"/.snap".IO "/dev".IO "/tmp".IO ...

But I wonder if the following test would work on Windows also​:

$ PERL6LIB=lib ./perl6 -e 'use Test; my $res = dir "/"; ok $res !~~ m/ "/" ** 2 /, "dir \"/\" results do not begin with two slashes"'
ok 1 - dir "/" results do not begin with two slashes

FWIW, I hope to be able to merge the newio branch before the end of the Patch -p2 hackathon. This will introduce a new set of fixes and possibly new breakage not spotted by the spectests (yet).

Liz

@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

From @usev6

I added a test to S32-io/dir.t with commit Raku/roast@29d41333b2.

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

From @usev6

I added a test to S32-io/dir.t with commit Raku/roast@29d41333b2.

I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed Mar 12, 2015
@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

@usev6 - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant