The documentation is off and the example does not compile and when modified to run it does not do the expected results.
Numbered Steps to Reproduce Problem:
Just compile and run this
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/dir(Path as text)
shell("dir [Path] > dir.out")
usr << file2text("dir.out")
It to quote
This example displays the output of the "dir" command to the user.
It throws an error when you compile it and when you correct it...It still fails... As much as I would love it to work as it is documented...
Does the problem occur:
Yes It does.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I really don't know
None, Unless I had a way of getting the folder byond is in at run-time.