-*- mode: compilation; default-directory: "/tmp/" -*- Compilation started at Tue Nov 13 10:04:09 cd /tmp ; cat upcase ; guile -s upcase upcase to ; echo =/= ; cat to ;;; upcase (use-modules (ttn-do mogrify)) (define (upcase-file i o) (call-with-output-file o (lambda (o) (display (string-upcase (editing-buffer (find-file-read-only i) (buffer-string))) o)))) (apply upcase-file (cdr (command-line))) ;;; upcase ends here =/= ;;; UPCASE (USE-MODULES (TTN-DO MOGRIFY)) (DEFINE (UPCASE-FILE I O) (CALL-WITH-OUTPUT-FILE O (LAMBDA (O) (DISPLAY (STRING-UPCASE (EDITING-BUFFER (FIND-FILE-READ-ONLY I) (BUFFER-STRING))) O)))) (APPLY UPCASE-FILE (CDR (COMMAND-LINE))) ;;; UPCASE ENDS HERE Compilation finished at Tue Nov 13 10:04:09