The shell() functions displays an error message, if the buffer is not sufficiently large. Use gra_status() to test the completion status of shell().
If the shell function is called without arguments, the buffer is read and the buffer output pointer is moved behind the last record that has been read.
show/buffer displays what is left in the buffer.
show/buffer/reset resets the output pointer to the beginning of the buffer.
>
*
= shell( pwd)
! ! put the list of all .fio files of ! the current directory into the buffer ! s1 = shell(ls -1 *.fio) if !gra_status() say " Error: Too many files, increase buffer size." wait end endif loop: ! ! read the files names ! fname = shell() ! ! test whether we are done ! if !search_symbol( fname) end endif ... goto loop