šŸ’¾ Archived View for idiomdrottning.org ā€ŗ salparse captured on 2023-01-29 at 03:57:15. Gemini links have been rewritten to link to archived content

View Raw

More Information

ā¬…ļø Previous capture (2022-07-16)

-=-=-=-=-=-=-

salparse

Chicken Schemeā€™s egg tester (disgustingly named ā€œsalmonellaā€) creates log files that are sometimes difficult to parse.

Hereā€™s a dumb liā€™l Unix filter, Iā€™m not even making a repo or egg for it yet, that prints the output of the test step (or if install failed, the install step) of the log file.

(print
 ((?-> list? (c find string?))
  (find (fn (and (list? x)
                 (> (length x) 2)
                 (memq (second x) '(install test))))
        (reverse (read-list)))))