From: Zhang Haijun <ccsmile2008@outlook.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Is the default value of directory-free-space-args wrong?
Date: Tue, 3 Sep 2019 02:40:43 +0000 [thread overview]
Message-ID: <KL1PR0601MB3653640154836A3A3CC3D749A8B90@KL1PR0601MB3653.apcprd06.prod.outlook.com> (raw)
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.
reply other threads:[~2019-09-03 2:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=KL1PR0601MB3653640154836A3A3CC3D749A8B90@KL1PR0601MB3653.apcprd06.prod.outlook.com \
--to=ccsmile2008@outlook.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).