petdance/scratch — Issue #445: examples/nci/ls.pir broken
Author: petdance
Created: 2011-11-01 04:26:03+00:00
State: open

Running the example as it is currently gives:

{{{
Unknown param Signature t

current instr.: '_main' pc 3 (examples/nci/ls.pir:24)
}}}

With the applied patch (that fixes the problem with the t parameter) gives:

{{{
..
book

q.pod
on.pod
o#WInvalid character for UTF-8 encoding

current instr.: '_main' pc 117 (examples/nci/ls.pir:62)
}}}

Which I believe is a problem with the OrderedHash and how we are accessing the name of the directory being viewed.

A second problem is that it assumes we are running it from the root parrot directory and attempts to open the docs/ directory - if it is run from another directory it will segfault when trying to open a that non-existent directory.