lucian1900/parrot — Issue #10: examples/nci/ls.pir broken
Author: lucian1900
Created: 2011-10-21 08:28:28+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.