Skip Menu |
Report information
Id: 127264
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: nadim.khemir [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: nadim khemir <nadim.khemir [...] gmail.com>
To: rakudobug [...] perl.org
Subject: Inconsistent file information
Date: Thu, 14 Jan 2016 12:33:01 +0100
$?FILE is the path and file name

callsframe.file returns the file name only
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 237b
On Thu Jan 14 03:33:28 2016, nadim.khemir@gmail.com wrote: Show quoted text
> $?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
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 949b
On Tue Aug 23 11:35:55 2016, coke wrote: Show quoted text
> 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) Show quoted text
> 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"]


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org