Commit 190e85b8 authored by Glenn Morris's avatar Glenn Morris

* lisp/mail/emacsbug.el (report-emacs-bug--os-description): Add BSD.

parent d0fc4f3f
......@@ -150,8 +150,20 @@ This requires either the macOS \"open\" command, or the freedesktop
nil t)
(setq os (concat os " " (match-string 1)))))))
;; TODO include other branches here.
;; Cygwin, *BSD, etc: ?
((eq system-type 'berkeley-unix)
(or (eq 0 (ignore-errors (call-process "freebsd-version" nil
'(t nil) nil "-u")))
(progn (erase-buffer)
(eq 0 (ignore-errors
(call-process "uname" nil
'(t nil) nil "-a")))))
(unless (zerop (buffer-size))
(goto-char (point-min))
(buffer-substring (line-beginning-position)
;; TODO Cygwin, Solaris (usg-unix-v).
(or (let ((file "/etc/os-release"))
(and (file-readable-p file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment