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.khe...@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"]

Reply via email to