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

Inconsistent file information #5048

Open
p6rt opened this issue Jan 14, 2016 · 4 comments
Open

Inconsistent file information #5048

p6rt opened this issue Jan 14, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 14, 2016

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

Searchable as RT127264$

@p6rt
Copy link
Author

p6rt commented Jan 14, 2016

From @nkh

$?FILE is the path and file name

callsframe.file returns the file name only

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

From @coke

On Thu Jan 14 03​:33​:28 2016, nadim.khemir@​gmail.com wrote​:

$?FILE is the path and file name

callsframe.file returns the file name only

This is no longer an issue in at least 2016.07.1

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

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

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

From @zoffixznet

On Tue Aug 23 11​:35​:55 2016, coke wrote​:

This is no longer an issue in at least 2016.07.1

Closable with tests.

The issue is still present in current bleed (2016.08.1-73-gfbeadbf)

On Thu Jan 14 03​:33​:28 2016, nadim.khemir@​gmail.com wrote​:

$?FILE is the path and file name

callsframe.file returns the file name only

The .file actually returns the *relative path* and not just a filename​:

zoffix@​VirtualBox​:/tmp/tmp.5AZ3SvWgK7$ tree
.
├── foo.p6
└── z

1 directory, 1 file

zoffix@​VirtualBox​:/tmp/tmp.5AZ3SvWgK7$ cat foo.p6
sub foo {}
dd [ $?FILE, callframe.file, &foo.file ];
dd [ $?FILE, callframe.file.IO.abspath, &foo.file.IO.abspath ]

zoffix@​VirtualBox​:/tmp/tmp.5AZ3SvWgK7$ cd z

zoffix@​VirtualBox​:/tmp/tmp.5AZ3SvWgK7/z$ perl6 ../foo.p6
["/tmp/tmp.5AZ3SvWgK7/z/../foo.p6", "../foo.p6", "../foo.p6"]
["/tmp/tmp.5AZ3SvWgK7/z/../foo.p6", "/tmp/tmp.5AZ3SvWgK7/z/../foo.p6", "/tmp/tmp.5AZ3SvWgK7/z/../foo.p6"]

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant