dundalek/closh

Make sure unlimited file can be piped

dundalek opened this issue · 0 comments

In bash following processes each line as it is appended to a file:

tail -F tmp.log | while read LOGLINE; do echo `date` ":" $LOGLINE; done

In closh that could be:

tail -F tmp.log |> #(doseq [line %] (println (sh-str date) ":" line))

Make sure it can process potentially unlimited file. Make sure the pipe operator |> uses lazy-seqs.

Make sure that piping large streams, e.g. /dev/zero will not run out of memory.