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

IO::Path.resolve on windows prefixed with \ #5803

Open
p6rt opened this issue Nov 16, 2016 · 4 comments
Open

IO::Path.resolve on windows prefixed with \ #5803

p6rt opened this issue Nov 16, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Nov 16, 2016

Migrated from rt.perl.org#130114 (status was 'open')

Searchable as RT130114$

@p6rt
Copy link
Author

p6rt commented Nov 16, 2016

From @MARTIMM

Hi,

On windows the path created by method resolve on windows is prefixed
with a '\' which is wrong

e.g. in project config-datalang-refine on appveyor the statement

  say 'Resolve​: ', '.'.IO.resolve.Str;

displays

Resolve​: \C​:\projects\config-datalang-refine

It shows a backslash before the volumename

Regards,

Marcel

@p6rt
Copy link
Author

p6rt commented Nov 16, 2016

From @zoffixznet

On Wed, 16 Nov 2016 03​:01​:30 -0800, mt1957@​gmail.com wrote​:

Hi,

On windows the path created by method resolve on windows is prefixed
with a '\' which is wrong

e.g. in project config-datalang-refine on appveyor the statement

say 'Resolve​: ', '.'.IO.resolve.Str;

displays

Resolve​: \C​:\projects\config-datalang-refine

It shows a backslash before the volumename

Regards,

Marcel

That's probably not the only thing broken. The comment in the method (and the docs) says "# XXXX​: Not portable yet; assumes POSIX semantics"

@p6rt
Copy link
Author

p6rt commented Nov 16, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 17, 2016

From @MARTIMM

On 11/16/2016 09​:17 PM, Zoffix Znet via RT wrote​:

On Wed, 16 Nov 2016 03​:01​:30 -0800, mt1957@​gmail.com wrote​:

Hi,

On windows the path created by method resolve on windows is prefixed
with a '\' which is wrong

e.g. in project config-datalang-refine on appveyor the statement

say 'Resolve​: ', '\.'\.IO\.resolve\.Str;

displays

Resolve​: \C​:\projects\config-datalang-refine

It shows a backslash before the volumename

Regards,

Marcel

That's probably not the only thing broken. The comment in the method (and the docs) says "# XXXX​: Not portable yet; assumes POSIX semantics"

I.ve seen that too in the code, i'd just thought to mention it. In the
mean time I can get by using the method abspath().

Thanks,
Marcel

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

No branches or pull requests

1 participant