* Is the default value of directory-free-space-args wrong?
@ 2019-09-03 2:40 Zhang Haijun
0 siblings, 0 replies; only message in thread
From: Zhang Haijun @ 2019-09-03 2:40 UTC (permalink / raw)
To: emacs-devel@gnu.org
The variable is defined as follow:
(defcustom directory-free-space-args
(purecopy (if (eq system-type 'darwin) "-k" "-Pk"))
"Options to use when running `directory-free-space-program'."
:type 'string
:group ‘dired)
On macOS(10.13.6), with the default value(“-k"), the result of get-free-disk-space is the free inodes, which is not expected.
With another value(“-Pk”), the result is the available disk space, which is expected.
The manual of df on macOS says:
-i Include statistics on the number of free inodes. This option is now the default to conform to
Version 3 of the Single UNIX Specification (``SUSv3'') Use -P to suppress this output.
So -P is needed on macOS.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-03 2:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 2:40 Is the default value of directory-free-space-args wrong? Zhang Haijun
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).