]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/backend-library.scm
* scripts/lilypond-invoke-editor.scm (dissect-uri): Handle URIs
[lilypond.git] / scm / backend-library.scm
index a9367de7c2896b39efe7448f296fc7fb46414065..5fef767162eaefaba4cbbfe854b4250598e4c765 100644 (file)
 
 (define-public (ly:system command)
   (let* ((status 0)
-        (silenced
-         (string-append command (if (ly:get-option 'verbose)
-                                    ""
-                                    " > /dev/null 2>&1 "))))
+        (dev-null "/dev/null")
+        (silenced (if (or (ly:get-option 'verbose)
+                          (not (access? dev-null W_OK)))
+                      command
+                      (format #f "~a > ~a 2>&1 " command dev-null))))
     (if (ly:get-option 'verbose)
        (ly:message (_ "Invoking `~a'...") command))