Is there a function available that will return a directory listing as an array of strings?
There’s a non-portable kludge: $ls >tmpfile and read the tmpfile. I’ve worked around the problem in the past by simply testing for the existence of files using open; as long as you can generate the name of a file which might be present (e.g.- a member of a family of files), that works pretty well, and is portable. The only thing you can’t do that way is to generate some sort of a menu of possible choices — but Yorick can’t do that very well anyway, so I haven’t been dying to fix the problem.