Guest User

Untitled

a guest
Dec 30th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.54 KB | None | 0 0
  1. (defun diff-strings-bad1 (string1 string2)
  2.   (uiop:with-temporary-file (:stream stream1 :pathname path1 :directory "/tmp")
  3.     (princ string1 stream1)
  4.     :close-stream
  5.     (uiop:with-temporary-file (:stream stream2 :pathname path2 :directory "/tmp")
  6.       (princ string2 stream2)
  7.       :close-stream
  8.       (let ((fullpath (list "/usr/bin/diff" "-wB" (uiop:native-namestring path1) (uiop:native-namestring path2))))
  9.         (uiop:run-program fullpath
  10.                           :output :string
  11.                           :ignore-error-status t)))))
Advertisement
Add Comment
Please, Sign In to add comment