From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Chris Marusich Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 20 May 2012 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 11526@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133753297230513 (code B ref -1); Sun, 20 May 2012 16:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 May 2012 16:56:12 +0000 Received: from localhost ([127.0.0.1]:35564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SW9Q8-0007vW-9L for submit@debbugs.gnu.org; Sun, 20 May 2012 12:56:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36866) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SW0mP-0002rC-LW for submit@debbugs.gnu.org; Sun, 20 May 2012 03:42:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SW0ll-00010y-Lp for submit@debbugs.gnu.org; Sun, 20 May 2012 03:41:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:45366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW0ll-00010u-FJ for submit@debbugs.gnu.org; Sun, 20 May 2012 03:41:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW0lg-0004nl-IQ for bug-coreutils@gnu.org; Sun, 20 May 2012 03:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SW0lc-00010S-Gc for bug-coreutils@gnu.org; Sun, 20 May 2012 03:41:31 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:62265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW0lb-00010E-Vz for bug-coreutils@gnu.org; Sun, 20 May 2012 03:41:28 -0400 Received: by dakp5 with SMTP id p5so5901539dak.0 for ; Sun, 20 May 2012 00:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=68MTyQ6/p55ik/M2FzaeNNAQyS8fVGIlWWlb3L6tUME=; b=W/RameUMiBqRXGcgyD1sGHHA7zseRyKeC+/baL98qZ/geFONEkB4WIZGNeXADioY3R I4+X/7B+nsFyQjLWVnmNumFiPXGjL1uofS9MwPdF7er+QPPGh6RJU+4d96vo74fs64+v kOZiSUg5M5SYSYjtylx5eJGJ+HDoHRUMYWWlYejqsjvzX7JAH+rUll10RhLm1UzfF6kR cKu6eZZXWCkkRH+70JYzNif5/S/4fXbLMQBqkcTIxvZ7Woub8YiQ0OMRM2PGsuJ5gMEO Q+d2A8XASjFczHSVIdggFfeBqnjkTxlCsbLrnHu9DrqR3Q0xA0kFcuK2HwtRZb/2AyBY REXA== MIME-Version: 1.0 Received: by 10.68.219.166 with SMTP id pp6mr56150225pbc.35.1337499684945; Sun, 20 May 2012 00:41:24 -0700 (PDT) Received: by 10.68.8.97 with HTTP; Sun, 20 May 2012 00:41:24 -0700 (PDT) Date: Sun, 20 May 2012 00:41:24 -0700 Message-ID: From: Chris Marusich Content-Type: multipart/alternative; boundary=e89a8ff24bcd9bc01f04c072e971 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Mailman-Approved-At: Sun, 20 May 2012 12:55:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --e89a8ff24bcd9bc01f04c072e971 Content-Type: text/plain; charset=ISO-8859-1 BUG DESCRIPTION: If you pass multiple arguments to du -s and the first of those argument is . (the current directory), then du will only output the size of the first argument. This bug is reproducible in version 8.13 on Ubuntu 12.04 LTS (this is currently the latest version for Ubuntu 12.04 LTS) as follows. However, it works properly in version 7.4 on Ubuntu 10.04.3 LTS. An acquaintance has confirmed that the bug also occurs with du 8.16 and 8.17 (currently the latest coreutils version) on Arch Linux. EXAMPLE, DU DOESN'T WORK: chris@shmion:~/foo$ mkdir foo bar ; ls -al total 16 drwxrwxr-x 4 chris chris 4096 May 19 23:24 . drwxr-xr-x 42 chris chris 4096 May 19 22:04 .. drwxrwxr-x 2 chris chris 4096 May 19 23:24 bar drwxrwxr-x 2 chris chris 4096 May 19 23:24 foo chris@shmion:~/foo$ strace -odu.log du -s . foo bar 20 . chris@shmion:~/foo$ lsb_release -d Description: Ubuntu 12.04 LTS chris@shmion:~/foo$ du --version | head -n 1 du (GNU coreutils) 8.13 chris@shmion:~/foo$ cat du.log execve("/usr/bin/du", ["du", "-s", ".", "foo", "bar"], [/* 51 vars */]) = 0 brk(0) = 0x17aa000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15215ed000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=82139, ...}) = 0 mmap(NULL, 82139, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f15215d8000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1802936, ...}) = 0 mmap(NULL, 3917016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1521010000 mprotect(0x7f15211c3000, 2093056, PROT_NONE) = 0 mmap(0x7f15213c2000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7f15213c2000 mmap(0x7f15213c8000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f15213c8000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15215d7000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15215d6000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15215d5000 arch_prctl(ARCH_SET_FS, 0x7f15215d6700) = 0 mprotect(0x7f15213c2000, 16384, PROT_READ) = 0 mprotect(0x617000, 4096, PROT_READ) = 0 mprotect(0x7f15215ef000, 4096, PROT_READ) = 0 munmap(0x7f15215d8000, 82139) = 0 brk(0) = 0x17aa000 brk(0x17cb000) = 0x17cb000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=3906928, ...}) = 0 mmap(NULL, 3906928, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1520c56000 close(3) = 0 newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, ".", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_NOFOLLOW) = 3 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW) fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fcntl(3, F_DUPFD, 3) = 4 fcntl(4, F_GETFD) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 5 entries */, 32768) = 128 getdents(3, /* 0 entries */, 32768) = 0 close(3) = 0 newfstatat(4, "foo", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(4, "foo", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_NOFOLLOW) = 3 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW) fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fcntl(3, F_DUPFD, 3) = 5 fcntl(5, F_GETFD) = 0 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 0 entries */, 32768) = 0 close(3) = 0 close(5) = 0 newfstatat(4, "bar", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(4, "bar", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_NOFOLLOW) = 3 fcntl(3, F_GETFD) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fcntl(3, F_GETFL) = 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW) fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fcntl(3, F_DUPFD, 3) = 5 fcntl(5, F_GETFD) = 0 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 0 entries */, 32768) = 0 close(3) = 0 close(5) = 0 newfstatat(4, "du.log", {st_mode=S_IFREG|0664, st_size=4441, ...}, AT_SYMLINK_NOFOLLOW) = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f15215ec000 write(1, "20\t.\n", 5) = 5 close(4) = 0 newfstatat(AT_FDCWD, "foo", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "bar", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 close(1) = 0 munmap(0x7f15215ec000, 4096) = 0 close(2) = 0 exit_group(0) = ? chris@shmion:~/foo$ EXAMPLE, DU WORKS: chris@rika:~/foo$ mkdir foo bar ; ls -al total 16 drwxr-xr-x 4 chris chris 4096 2012-05-19 23:25 . drwxr-xr-x 6 chris chris 4096 2012-05-19 22:36 .. drwxr-xr-x 2 chris chris 4096 2012-05-19 23:25 bar drwxr-xr-x 2 chris chris 4096 2012-05-19 23:25 foo chris@rika:~/foo$ strace -odu.log du -s . foo bar 20 . 4 foo 4 bar chris@rika:~/foo$ lsb_release -d Description: Ubuntu 10.04.3 LTS chris@rika:~/foo$ du --version | head -n 1 du (GNU coreutils) 7.4 chris@rika:~/foo$ cat du.log execve("/usr/bin/du", ["du", "-s", ".", "foo", "bar"], [/* 21 vars */]) = 0 brk(0) = 0x9ea7000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7794000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=18207, ...}) = 0 mmap2(NULL, 18207, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb778f000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000m\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1405508, ...}) = 0 mmap2(NULL, 1415592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x49e000 mprotect(0x5f1000, 4096, PROT_NONE) = 0 mmap2(0x5f2000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x153) = 0x5f2000 mmap2(0x5f5000, 10664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x5f5000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb778e000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb778e8d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x5f2000, 8192, PROT_READ) = 0 mprotect(0x805e000, 4096, PROT_READ) = 0 mprotect(0x946000, 4096, PROT_READ) = 0 munmap(0xb778f000, 18207) = 0 brk(0) = 0x9ea7000 brk(0x9ec8000) = 0x9ec8000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7793000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2570 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7793000, 4096) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0 mmap2(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7793000 close(3) = 0 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=26048, ...}) = 0 mmap2(NULL, 26048, PROT_READ, MAP_SHARED, 3, 0) = 0xb7787000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0 mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7792000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0 mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7791000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0 mmap2(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7790000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0 mmap2(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb778f000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0 mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7786000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 close(3) = 0 open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0 mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7785000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0 mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7784000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1170770, ...}) = 0 mmap2(NULL, 1170770, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7666000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0 mmap2(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7665000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0 mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7664000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=256324, ...}) = 0 mmap2(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7625000 close(3) = 0 fstatat64(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, ".", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_DUPFD, 3) = 4 getdents64(3, /* 5 entries */, 32768) = 128 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 fstatat64(4, "foo", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(4, "foo", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_DUPFD, 3) = 5 getdents64(3, /* 2 entries */, 32768) = 48 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 close(5) = 0 fstatat64(4, "bar", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(4, "bar", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_DUPFD, 3) = 5 getdents64(3, /* 2 entries */, 32768) = 48 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 close(5) = 0 fstatat64(4, "du.log", {st_mode=S_IFREG|0644, st_size=8092, ...}, AT_SYMLINK_NOFOLLOW) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7624000 write(1, "20\t.\n", 5) = 5 close(4) = 0 fstatat64(AT_FDCWD, "foo", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "foo", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_DUPFD, 3) = 4 getdents64(3, /* 2 entries */, 32768) = 48 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 write(1, "4\tfoo\n", 6) = 6 close(4) = 0 fstatat64(AT_FDCWD, "bar", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "bar", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_DUPFD, 3) = 4 getdents64(3, /* 2 entries */, 32768) = 48 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 write(1, "4\tbar\n", 6) = 6 close(4) = 0 close(1) = 0 munmap(0xb7624000, 4096) = 0 close(2) = 0 exit_group(0) = ? chris@rika:~/foo$ --e89a8ff24bcd9bc01f04c072e971 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable BUG DESCRIPTION:

If you pass multiple arguments to du -s and the fir= st of those argument is . (the current directory), then du will only output= the size of the first argument.=A0 This bug is reproducible in version 8.1= 3 on Ubuntu 12.04 LTS (this is currently the latest version for Ubuntu 12.0= 4 LTS) as follows.=A0 However, it works properly in version 7.4 on Ubuntu 1= 0.04.3 LTS.=A0 An acquaintance has confirmed that the bug also occurs with = du 8.16 and 8.17 (currently the latest coreutils version) on Arch Linux.
EXAMPLE, DU DOESN'T WORK:

chris@shmion:~/foo$ mkdir foo bar = ; ls -al
total 16
drwxrwxr-x=A0 4 chris chris 4096 May 19 23:24 .
= drwxr-xr-x 42 chris chris 4096 May 19 22:04 ..
drwxrwxr-x=A0 2 chris chr= is 4096 May 19 23:24 bar
drwxrwxr-x=A0 2 chris chris 4096 May 19 23:24 foo
chris@shmion:~/foo$ st= race -odu.log du -s . foo bar
20=A0=A0=A0 .
chris@shmion:~/foo$ lsb_r= elease -d
Description:=A0=A0=A0 Ubuntu 12.04 LTS
chris@shmion:~/foo$ = du --version | head -n 1
du (GNU coreutils) 8.13
chris@shmion:~/foo$ cat du.log
execve("= /usr/bin/du", ["du", "-s", ".", "fo= o", "bar"], [/* 51 vars */]) =3D 0
brk(0)=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0x17aa000
access("/etc/ld.so.nohwcap", F_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (= No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PR= IVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7f15215ed000
access("/etc/ld.so.p= reload", R_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (No such file or directory= )
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) =3D 3
fstat(3, {s= t_mode=3DS_IFREG|0644, st_size=3D82139, ...}) =3D 0
mmap(NULL, 82139, PR= OT_READ, MAP_PRIVATE, 3, 0) =3D 0x7f15215d8000
close(3)=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 =3D 0
access("/etc/ld.so.nohwcap", F_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (= No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6&qu= ot;, O_RDONLY|O_CLOEXEC) =3D 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0= \0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) =3D 832
fstat(3, {st_mode=3DS_IFREG|0755, st_size=3D1802936, ...}) =3D 0
mmap(NU= LL, 3917016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =3D 0x7f= 1521010000
mprotect(0x7f15211c3000, 2093056, PROT_NONE) =3D 0
mmap(0x= 7f15213c2000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWR= ITE, 3, 0x1b2000) =3D 0x7f15213c2000
mmap(0x7f15213c8000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP= _ANONYMOUS, -1, 0) =3D 0x7f15213c8000
close(3)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0=
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0= ) =3D 0x7f15215d7000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = =3D 0x7f15215d6000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MA= P_ANONYMOUS, -1, 0) =3D 0x7f15215d5000
arch_prctl(ARCH_SET_FS, 0x7f15215= d6700) =3D 0
mprotect(0x7f15213c2000, 16384, PROT_READ) =3D 0
mprotect(0x617000, 4096= , PROT_READ)=A0=A0=A0=A0 =3D 0
mprotect(0x7f15215ef000, 4096, PROT_READ)= =3D 0
munmap(0x7f15215d8000, 82139)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0=
brk(0)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0x17aa000
brk(0x17cb000)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0x17cb000
open("/usr/lib/locale/locale-archive&= quot;, O_RDONLY|O_CLOEXEC) =3D 3
fstat(3, {st_mode=3DS_IFREG|0644, st_si= ze=3D3906928, ...}) =3D 0
mmap(NULL, 3906928, PROT_READ, MAP_PRIVATE, 3,= 0) =3D 0x7f1520c56000
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
newfstatat(AT_FDCWD, ".", {s= t_mode=3DS_IFDIR|0775, st_size=3D4096, ...}, AT_SYMLINK_NOFOLLOW) =3D 0
= openat(AT_FDCWD, ".", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_= NOFOLLOW) =3D 3
fcntl(3, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 =3D 0
fstat(3, {st_mode=3DS_IFDIR|0775, st_size=3D4096, ...}) =3D 0<= br>fcntl(3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY= |O_NOFOLLOW)
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl(= 3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D= 4
fcntl(4, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
fcntl(4, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
getdents(3, /* 5 entries */, 32768)=A0=A0=A0=A0 =3D 128<= br> getdents(3, /* 0 entries */, 32768)=A0=A0=A0=A0 =3D 0
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
newfstatat(4, "foo", {st_mode=3DS_IFDIR|0775, = st_size=3D4096, ...}, AT_SYMLINK_NOFOLLOW) =3D 0
openat(4, "foo&quo= t;, O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_NOFOLLOW) =3D 3
fcntl(3, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 =3D 0
fstat(3, {st_mode=3DS_IFDIR|0775, st_size=3D4096, ...}) =3D 0<= br>fcntl(3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY= |O_NOFOLLOW)
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl(= 3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D= 5
fcntl(5, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
fcntl(5, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
getdents(3, /* 2 entries */, 32768)=A0=A0=A0=A0 =3D 48 getdents(3, /* 0 entries */, 32768)=A0=A0=A0=A0 =3D 0
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
close(5)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
newfstatat(4, "= bar", {st_mode=3DS_IFDIR|0775, st_size=3D4096, ...}, AT_SYMLINK_NOFOLL= OW) =3D 0
openat(4, "bar", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_DIRECTORY|O_NOFOL= LOW) =3D 3
fcntl(3, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 =3D 0
fstat(3, {st_mode=3DS_IFDIR|0775, st_size=3D409= 6, ...}) =3D 0
fcntl(3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_= NOFOLLOW)
fcntl(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = =3D 0
fcntl(3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 5
fcntl(5, F_GETFD)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl(5, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
getden= ts(3, /* 2 entries */, 32768)=A0=A0=A0=A0 =3D 48
getdents(3, /* 0 entrie= s */, 32768)=A0=A0=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
close= (5)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =3D 0
newfstatat(4, "du.log", {st_mode=3DS_IFREG|0664, st_size=3D4441, = ...}, AT_SYMLINK_NOFOLLOW) =3D 0
fstat(1, {st_mode=3DS_IFCHR|0620, st_rd= ev=3Dmakedev(136, 4), ...}) =3D 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE,= MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0x7f15215ec000
write(1, "20\t.\n", 5)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 5
close(4)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
newfstatat(AT_FDCWD,= "foo", {st_mode=3DS_IFDIR|0775, st_size=3D4096, ...}, AT_SYMLINK= _NOFOLLOW) =3D 0
newfstatat(AT_FDCWD, "bar", {st_mode=3DS_IFDI= R|0775, st_size=3D4096, ...}, AT_SYMLINK_NOFOLLOW) =3D 0
close(1)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
munmap(0x7f15215ec000, 4096)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
close(2)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
exit_= group(0)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D ?
chris@shmion:~/foo$

EXAMPLE, DU WORKS:

chris@rika:~/foo$ mkdir foo bar ; ls -al
total 16
drwxr-xr-x 4 ch= ris chris 4096 2012-05-19 23:25 .
drwxr-xr-x 6 chris chris 4096 2012-05-= 19 22:36 ..
drwxr-xr-x 2 chris chris 4096 2012-05-19 23:25 bar
drwxr-= xr-x 2 chris chris 4096 2012-05-19 23:25 foo
chris@rika:~/foo$ strace -odu.log du -s . foo bar
20=A0=A0=A0 .
4=A0= =A0=A0 foo
4=A0=A0=A0 bar
chris@rika:~/foo$ lsb_release -d
Descrip= tion:=A0=A0=A0 Ubuntu 10.04.3 LTS
chris@rika:~/foo$ du --version | head = -n 1
du (GNU coreutils) 7.4
chris@rika:~/foo$ cat du.log
execve("/usr/bin/du", ["du&= quot;, "-s", ".", "foo", "bar"], [/= * 21 vars */]) =3D 0
brk(0)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0x9ea7000
access("/etc/ld.so.nohwcap", F_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (= No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_P= RIVATE|MAP_ANONYMOUS, -1, 0) =3D 0xb7794000
access("/etc/ld.so.prel= oad", R_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY)=A0=A0=A0=A0=A0 =3D 3
fstat6= 4(3, {st_mode=3DS_IFREG|0644, st_size=3D18207, ...}) =3D 0
mmap2(NULL, 1= 8207, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb778f000
close(3)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =3D 0
access("/etc/ld.so.nohwcap", F_OK)=A0=A0=A0=A0=A0 =3D -1 ENOENT (= No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6"= , O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\= 1\0\0\0000m\1\0004\0\0\0"..., 512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1405508, ...}) =3D 0
mmap2= (NULL, 1415592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =3D 0= x49e000
mprotect(0x5f1000, 4096, PROT_NONE)=A0=A0=A0=A0 =3D 0
mmap2(0= x5f2000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, = 3, 0x153) =3D 0x5f2000
mmap2(0x5f5000, 10664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON= YMOUS, -1, 0) =3D 0x5f5000
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
mmap2(NU= LL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =3D 0xb77= 8e000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb778e8d0, limit:10485= 75, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_pr= esent:0, useable:1}) =3D 0
mprotect(0x5f2000, 8192, PROT_READ)=A0=A0=A0= =A0 =3D 0
mprotect(0x805e000, 4096, PROT_READ)=A0=A0=A0 =3D 0
mprotect(0x946000, 4= 096, PROT_READ)=A0=A0=A0=A0 =3D 0
munmap(0xb778f000, 18207)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
brk(0)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = =3D 0x9ea7000
brk(0x9ec8000)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0x9ec8000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) =3D = -1 ENOENT (No such file or directory)
open("/usr/share/locale/local= e.alias", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_si= ze=3D2570, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = =3D 0xb7793000
read(3, "# Locale name alias data base.\n#"...,= 4096) =3D 2570
read(3, "", 4096)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
munmap(0xb7793000, 4096)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US= .UTF-8/LC_IDENTIFICATION", O_RDONLY) =3D -1 ENOENT (No such file or di= rectory)
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", = O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D373, ...}) =3D 0
mmap2(NUL= L, 373, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7793000
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
open("/usr/lib/gconv/gconv-modules.cache", O_R= DONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D26048, ...}) =3D 0
mmap2(N= ULL, 26048, PROT_READ, MAP_SHARED, 3, 0) =3D 0xb7787000
close(3)=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT= ", O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) =3D 3=
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D23, ...}) =3D 0
mmap2(= NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7792000
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) =3D -1= ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf= 8/LC_TELEPHONE", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644= , st_size=3D59, ...}) =3D 0
mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7791000
close(3)=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS&= quot;, O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/u= sr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D155, ...}) =3D 0
mmap2(NUL= L, 155, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7790000
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_= RDONLY) =3D -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) =3D 3
fst= at64(3, {st_mode=3DS_IFREG|0644, st_size=3D77, ...}) =3D 0
mmap2(NULL, 7= 7, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb778f000
close(3)=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) =3D -1 ENO= ENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC= _PAPER", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_siz= e=3D34, ...}) =3D 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7786000
close(3)=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES= ", O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/= usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0
close(3)= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.utf8/LC_MESSAG= ES/SYS_LC_MESSAGES", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|= 0644, st_size=3D57, ...}) =3D 0
mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7785000
close(3)=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY= ", O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/= usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D286, ...}) =3D 0
mmap2(NUL= L, 286, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7784000
close(3)=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE",= O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) =3D 3
= fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1170770, ...}) =3D 0
mmap2= (NULL, 1170770, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7666000
close(3)=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) =3D -1 ENOE= NT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_= TIME", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size= =3D2454, ...}) =3D 0
mmap2(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7665000
close(3)= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_NUMER= IC", O_RDONLY) =3D -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) =3D 3
= fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D54, ...}) =3D 0
mmap2(NULL= , 54, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7664000
close(3)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =3D 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) =3D -1 ENO= ENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC= _CTYPE", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_siz= e=3D256324, ...}) =3D 0
mmap2(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0xb7625000
close(3= )=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =3D 0
fstatat64(AT_FDCWD, ".", {st_mode= =3DS_IFDIR|0755, st_size=3D4096, ...}, AT_SYMLINK_NOFOLLOW) =3D 0
openat= (AT_FDCWD, ".", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3, {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0
fcntl64(= 3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D= 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFD, FD_CLOEXEC)=A0= =A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl64(3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 4
getdents64(3, /* 5 entries */, 32768)=A0=A0 =3D 128
getdents64(3, /* 0 e= ntries */, 32768)=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fstat= at64(4, "foo", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}, AT_= SYMLINK_NOFOLLOW) =3D 0
openat(4, "foo", O_RDONLY|O_LARGEFILE)=A0 =3D 3
fstat64(3, {st= _mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0
fcntl64(3, F_GETFL)=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0x8000 (flags= O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0= =A0=A0 =3D 0
fcntl64(3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = =3D 5
getdents64(3, /* 2 entries */, 32768)=A0=A0 =3D 48
getdents64(3= , /* 0 entries */, 32768)=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0=
close(5)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fstatat64(4, "bar", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}= , AT_SYMLINK_NOFOLLOW) =3D 0
openat(4, "bar", O_RDONLY|O_LARGE= FILE)=A0 =3D 3
fstat64(3, {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...})= =3D 0
fcntl64(3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =3D 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl64(3,= F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 5
ge= tdents64(3, /* 2 entries */, 32768)=A0=A0 =3D 48
getdents64(3, /* 0 entr= ies */, 32768)=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
close(5)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fstatat64(4, "du.log", {st_m= ode=3DS_IFREG|0644, st_size=3D8092, ...}, AT_SYMLINK_NOFOLLOW) =3D 0
fst= at64(1, {st_mode=3DS_IFCHR|0620, st_rdev=3Dmakedev(136, 0), ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = =3D 0xb7624000
write(1, "20\t.\n", 5)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 5
close(4)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fs= tatat64(AT_FDCWD, "foo", {st_mode=3DS_IFDIR|0755, st_size=3D4096,= ...}, AT_SYMLINK_NOFOLLOW) =3D 0
openat(AT_FDCWD, "foo", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3,= {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0
fcntl64(3, F_GETFL= )=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0x8000 (f= lags O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFD, FD_CLOEXEC)=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 0
fcntl64(3, F_DUPFD, 3)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = =3D 4
getdents64(3, /* 2 entries */, 32768)=A0=A0 =3D 48
getdents64(3= , /* 0 entries */, 32768)=A0=A0 =3D 0
close(3)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0=
write(1, "4\tfoo\n", 6)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =3D 6
close(4)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fstatat64(AT_FDCWD, "bar", {= st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}, AT_SYMLINK_NOFOLLOW) =3D 0openat(AT_FDCWD, "bar", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3= , {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0
fcntl64(3, F_GETFL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =3D 0x8000 (flags O_RDONLY|O_LARGEFILE)
fcntl64(3, F_SETFD, FD_CL= OEXEC)=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
fcntl64(3, F_DUPFD, 3)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 4
getdents64(3, /* 2 entries= */, 32768)=A0=A0 =3D 48
getdents64(3, /* 0 entries */, 32768)=A0=A0 =3D 0
close(3)=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =3D 0
write(1, "4\tbar\n", 6)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =3D 6
close(4)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
close= (1)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =3D 0
munmap(0xb7624000, 4096)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0=
close(2)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D 0
exit_group(0)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D ?
chris@ri= ka:~/foo$
--e89a8ff24bcd9bc01f04c072e971-- From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 20 May 2012 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Chris Marusich Cc: 11526@debbugs.gnu.org, control@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133754870424054 (code B ref 11526); Sun, 20 May 2012 21:19:01 +0000 Received: (at 11526) by debbugs.gnu.org; 20 May 2012 21:18:24 +0000 Received: from localhost ([127.0.0.1]:35716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWDWB-0006Ft-Co for submit@debbugs.gnu.org; Sun, 20 May 2012 17:18:24 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:37303) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWDVp-0006F3-8I; Sun, 20 May 2012 17:18:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 54FB239E800C; Sun, 20 May 2012 14:17:21 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AmIcGrC4xaUZ; Sun, 20 May 2012 14:17:20 -0700 (PDT) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7649339E8008; Sun, 20 May 2012 14:17:20 -0700 (PDT) Message-ID: <4FB95F64.2020601@cs.ucla.edu> Date: Sun, 20 May 2012 14:17:24 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) forcemerge 10282 11526 thanks Thanks, but this behavior is expected and is not a bug. We have been looking into ways of addressing the issue, though there's nothing currently active in this area. For more, please see . From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Chris Marusich Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 20 May 2012 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 11526@debbugs.gnu.org, control@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133755236532412 (code B ref 11526); Sun, 20 May 2012 22:20:02 +0000 Received: (at 11526) by debbugs.gnu.org; 20 May 2012 22:19:25 +0000 Received: from localhost ([127.0.0.1]:35732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWETF-0008Qh-5b for submit@debbugs.gnu.org; Sun, 20 May 2012 18:19:25 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:49218) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWESv-0008Pr-16; Sun, 20 May 2012 18:19:24 -0400 Received: by dacx6 with SMTP id x6so5446195dac.3 for ; Sun, 20 May 2012 15:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U6ItGEB7TJdh94Pa/2wsVYxHDCtYSRFUozVqbanbAJ4=; b=VHjEmkA7xvEreAC8623nGydRFNKIP7NEhYxqjg2ISSm1YSLSFsxBDGKD6az/3ven0+ S+xSzcf1oY68F4CSBeuELNMqBeiPzks9fXjBkHV8qSQVzxram/xOhlgq5KKUT1X1Pchf 8D1vufgyQ72xwjFazyE7bobH1WqHV2ZZ8E+PGYP7KHKeuv3Il7w7Ju1sjqeKRiy/2zN3 WFL+Hr5F9PZhHD7XWUcI0UUGnHnQ8g9tZskeIZ3oK3ELwj1ENrpfARTi28CuYhtd4Lo4 ACfH2s+K/H6hrk1cExMII4l94/82UTlqb4KykP8zlG2H7hCO0k4bJQlau+DGZn0+ozRx 560A== MIME-Version: 1.0 Received: by 10.68.129.72 with SMTP id nu8mr5512784pbb.56.1337552304642; Sun, 20 May 2012 15:18:24 -0700 (PDT) Received: by 10.68.8.97 with HTTP; Sun, 20 May 2012 15:18:24 -0700 (PDT) In-Reply-To: <4FB95F64.2020601@cs.ucla.edu> References: <4FB95F64.2020601@cs.ucla.edu> Date: Sun, 20 May 2012 15:18:24 -0700 Message-ID: From: Chris Marusich Content-Type: multipart/alternative; boundary=047d7b10cfebfc98fe04c07f29f2 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --047d7b10cfebfc98fe04c07f29f2 Content-Type: text/plain; charset=ISO-8859-1 Thanks for your reply. I've read the thread and understand that the intended behavior is not to double-count nodes so we can get an accurate feel of the total size of the output of du -s by summing the sizes together. However, the behavior contrasts with the description of -s ("display only a total for each argument" on my system), so perhaps the documentation should be updated? While it may be intuitive not to double-count a given directory, I don't think the current description of -s makes it clear that the size reported for a directory might be greater than 0 but less than the actual size of the directory and all its contents (i.e. in the case where one of its subdirectory was counted earlier). It should be made clear that the numbers before each directory may in fact NOT be the actual size of each directory, because that's what the description for -s seems to say now. On Sun, May 20, 2012 at 2:17 PM, Paul Eggert wrote: > forcemerge 10282 11526 > thanks > > Thanks, but this behavior is expected and is not a bug. > We have been looking into ways of addressing the issue, > though there's nothing currently active in this area. > For more, please see . > --047d7b10cfebfc98fe04c07f29f2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your reply.=A0 I've read the thread and understand that the = intended behavior is not to double-count nodes so we can get an accurate fe= el of the total size of the output of du -s by summing the sizes together.<= br>
However, the behavior contrasts with the description of -s ("displ= ay only a total for each argument" on my system), so perhaps the docum= entation should be updated?=A0 While it may be intuitive not to double-coun= t a given directory, I don't think the current description of -s makes = it clear that the size reported for a directory might be greater than 0 but= less than the actual size of the directory and all its contents (i.e. in t= he case where one of its subdirectory was counted earlier).=A0 It should be= made clear that the numbers before each directory may in fact NOT be the a= ctual size of each directory, because that's what the description for -= s seems to say now.

On Sun, May 20, 2012 at 2:17 PM, Paul Eggert= <eggert@cs.ucla.edu> wrote:
forcemerge 10282 11526
thanks

Thanks, but this behavior is expected and is not a bug.
We have been looking into ways of addressing the issue,
though there's nothing currently active in this area.
For more, please see <http://bugs.gnu.org/10282>.

--047d7b10cfebfc98fe04c07f29f2-- From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 21 May 2012 00:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Chris Marusich Cc: 11526@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133756022014514 (code B ref 11526); Mon, 21 May 2012 00:31:02 +0000 Received: (at 11526) by debbugs.gnu.org; 21 May 2012 00:30:20 +0000 Received: from localhost ([127.0.0.1]:35825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWGVv-0003m2-8j for submit@debbugs.gnu.org; Sun, 20 May 2012 20:30:19 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:51195) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWGVt-0003li-8t for 11526@debbugs.gnu.org; Sun, 20 May 2012 20:30:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 7862A39E800C; Sun, 20 May 2012 17:29:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DD3W1dm8-+cX; Sun, 20 May 2012 17:29:36 -0700 (PDT) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1A9B239E8008; Sun, 20 May 2012 17:29:36 -0700 (PDT) Message-ID: <4FB98C6E.6010103@cs.ucla.edu> Date: Sun, 20 May 2012 17:29:34 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 References: <4FB95F64.2020601@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 05/20/2012 03:18 PM, Chris Marusich wrote: > the behavior contrasts with the description of -s > ("display only a total for each argument" ...) We could change that "total" to "summary". The --help output (man page) currently doesn't discuss this issue in detail, because it's not really set up for long discussions. There is something in the manual about this, if that helps. From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Chris Marusich Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 21 May 2012 05:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 11526@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133757947213807 (code B ref 11526); Mon, 21 May 2012 05:52:02 +0000 Received: (at 11526) by debbugs.gnu.org; 21 May 2012 05:51:12 +0000 Received: from localhost ([127.0.0.1]:36135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWLWR-0003ad-Qj for submit@debbugs.gnu.org; Mon, 21 May 2012 01:51:12 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:48200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWLWP-0003aQ-EH for 11526@debbugs.gnu.org; Mon, 21 May 2012 01:51:10 -0400 Received: by dacx6 with SMTP id x6so5754891dac.3 for <11526@debbugs.gnu.org>; Sun, 20 May 2012 22:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FPbE4JuTuYED0Rbet9BZl6yhzZQtv0+5hE8F9FS0RWA=; b=fZh2PJn54Ytf+apRE89lb8wdIxraDDxsYn78ZdeNjm3TkO6RKG042VhhKmHVC4SJCC yat42W9hipO1VL2h3yxkQYBFYeMwfNnMjUoylVnflj0jGnE3J9PLLuca0DIFt5ngCdfs cHzQ3fT6p4cecOiAGU4862IX1S5j588yMhctumj9z19N93sfWMbB/lFLXoztLkrlDrnM Tn+ETJfh9MQfP7jAMTfCDUkwT7ytPty8sG/+35BoS9uv135vGl05KppzwMzdOfPf0CTf mNAhfVniLmlQr8PtgFdHC7O3Sd2YCfznh9mI1B7V09yvIAcgSvCA4AkhuCyVDyILlyuJ dTIQ== MIME-Version: 1.0 Received: by 10.68.219.166 with SMTP id pp6mr65140336pbc.35.1337579427399; Sun, 20 May 2012 22:50:27 -0700 (PDT) Received: by 10.68.8.97 with HTTP; Sun, 20 May 2012 22:50:27 -0700 (PDT) In-Reply-To: <4FB98C6E.6010103@cs.ucla.edu> References: <4FB95F64.2020601@cs.ucla.edu> <4FB98C6E.6010103@cs.ucla.edu> Date: Sun, 20 May 2012 22:50:27 -0700 Message-ID: From: Chris Marusich Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) After reviewing the manual more closely, it seems I would have gotten the behavior I expected with du -sl. What do you think about updating the documentation to read as follows? =91-s=92 =91--summarize=92 Display only a summary of the arguments. Unless -l is also specified, not all arguments will necessarily appear in the output (e.g., du -s foo foo/bar will not output a line for foo/bar), and not every size printed next to a directory in the output will necessarily reflect the total size of that directory including its contents (e.g., du -s foo/bar foo will output the total size of foo including its contents minus the size of foo/bar). This behavior is POSIX-compliant and allows us to use -c to get an idea of the total size of all the arguments taken together. The last line could perhaps be optional. I'd just like the docs to have a clear explanation that helps prevent future confusion. On Sun, May 20, 2012 at 5:29 PM, Paul Eggert wrote: > > On 05/20/2012 03:18 PM, Chris Marusich wrote: > > the behavior contrasts with the description of -s > > ("display only a total for each argument" ...) > > We could change that "total" to "summary". > > The --help output (man page) currently doesn't discuss > this issue in detail, because it's not really set up for > long discussions. =A0There is something in the manual about > this, if that helps. From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Chris Marusich Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 21 May 2012 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: 11526@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133758509122089 (code B ref 11526); Mon, 21 May 2012 07:25:01 +0000 Received: (at 11526) by debbugs.gnu.org; 21 May 2012 07:24:51 +0000 Received: from localhost ([127.0.0.1]:36272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWMz5-0005kD-16 for submit@debbugs.gnu.org; Mon, 21 May 2012 03:24:51 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:56379) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWMz2-0005jy-8V for 11526@debbugs.gnu.org; Mon, 21 May 2012 03:24:49 -0400 Received: by pbcwy7 with SMTP id wy7so5945499pbc.3 for <11526@debbugs.gnu.org>; Mon, 21 May 2012 00:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kM85CJfa8KxbSeHKAQj0HgipwTSYqJh+zPB5bLCmqIM=; b=BXg5RXsRyQvvoq7Dhj7qFW4KCbX1DKzhWMEYxLwx/AeSIZLi8tcKKphHC1Y9cnVHYb 7ksahBK7luy0V/hAKVEgnQZbm6B4TMFuKPfg3iTjwJ4MmPFDIfVdHIwwWL8ihJ++rCOC SaiQKig959VuytsDkTkqSYTjWCEflV3Njyy2Souq/xdvx/ua8MLbvGHH0HdS24XWnWAT 3zn9M4kYzlS8fBTeuThcNQNAPeYNOACTjj7tMuoMVG1PNbCgbhB86HxwKg33mkBzmqkw sdJfKk/CaZ9+4MMQw9aH+7YQdTZ+Xdi7zhO2CVzzSUDVyV7sTIObN0d/g8rSWXOhw8DT AQkg== MIME-Version: 1.0 Received: by 10.68.221.98 with SMTP id qd2mr65784505pbc.3.1337585045772; Mon, 21 May 2012 00:24:05 -0700 (PDT) Received: by 10.68.8.97 with HTTP; Mon, 21 May 2012 00:24:05 -0700 (PDT) In-Reply-To: References: <4FB95F64.2020601@cs.ucla.edu> <4FB98C6E.6010103@cs.ucla.edu> Date: Mon, 21 May 2012 00:24:05 -0700 Message-ID: From: Chris Marusich Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On second thought, maybe this additional verbiage would be misleading because (1) the same kind of thing can happen even when not using -s, and (2) -c doesn't have to be used with -s to determine the total size of the total disk usage of a given set of files or directories. In any case, even though the varying output for -s is understandable, behavior like the following seems counterintuitive: $ mkdir foo foo/bar $ du foo foo/bar 4 foo/bar 8 foo $ du foo/bar foo 4 foo/bar 4 foo Is this intended? Apologies if I'm asking something obvious. On Sun, May 20, 2012 at 10:50 PM, Chris Marusich wro= te: > After reviewing the manual more closely, it seems I would have gotten > the behavior I expected with du -sl. =A0What do you think about updating > the documentation to read as follows? > > =91-s=92 > =91--summarize=92 > Display only a summary of the arguments. =A0 Unless -l is also > specified, not all arguments will necessarily appear in the output > (e.g., du -s foo foo/bar will not output a line for foo/bar), and not > every size printed next to a directory in the output will necessarily > reflect the total size of that directory including its contents (e.g., > du -s foo/bar foo will output the total size of foo including its > contents minus the size of foo/bar). =A0This behavior is POSIX-compliant > and allows us to use -c to get an idea of the total size of all the > arguments taken together. > > The last line could perhaps be optional. =A0I'd just like the docs to > have a clear explanation that helps prevent future confusion. > > On Sun, May 20, 2012 at 5:29 PM, Paul Eggert wrote: >> >> On 05/20/2012 03:18 PM, Chris Marusich wrote: >> > the behavior contrasts with the description of -s >> > ("display only a total for each argument" ...) >> >> We could change that "total" to "summary". >> >> The --help output (man page) currently doesn't discuss >> this issue in detail, because it's not really set up for >> long discussions. =A0There is something in the manual about >> this, if that helps. From unknown Wed Sep 10 05:37:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11526: "du -s . foo bar" only outputs size of first argument -- versions 8.13, 8.16, and 8.17 (latest) Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 21 May 2012 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11526 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Chris Marusich Cc: 11526@debbugs.gnu.org Received: via spool by 11526-submit@debbugs.gnu.org id=B11526.133758539422545 (code B ref 11526); Mon, 21 May 2012 07:30:02 +0000 Received: (at 11526) by debbugs.gnu.org; 21 May 2012 07:29:54 +0000 Received: from localhost ([127.0.0.1]:36288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWN3w-0005rY-7M for submit@debbugs.gnu.org; Mon, 21 May 2012 03:29:52 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:51795) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWN3r-0005rK-W1 for 11526@debbugs.gnu.org; Mon, 21 May 2012 03:29:49 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 972DB39E800B; Mon, 21 May 2012 00:29:05 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fVCVRj8CVy2U; Mon, 21 May 2012 00:29:05 -0700 (PDT) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 4644039E8008; Mon, 21 May 2012 00:29:05 -0700 (PDT) Message-ID: <4FB9EEC8.703@cs.ucla.edu> Date: Mon, 21 May 2012 00:29:12 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 References: <4FB95F64.2020601@cs.ucla.edu> <4FB98C6E.6010103@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 05/21/2012 12:24 AM, Chris Marusich wrote: > $ mkdir foo foo/bar > $ du foo foo/bar > 4 foo/bar > 8 foo > $ du foo/bar foo > 4 foo/bar > 4 foo > > Is this intended? Wow! That's a good one. Yes, the behavior is intended, though, as I mentioned, there's been some consideration to adding a flag or two that would generate different output here. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 15 11:03:27 2018 Received: (at control) by debbugs.gnu.org; 15 Oct 2018 15:03:27 +0000 Received: from localhost ([127.0.0.1]:50923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC4P1-000675-B1 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 11:03:27 -0400 Received: from mail-pf1-f177.google.com ([209.85.210.177]:37578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC4Oz-00066p-ME; Mon, 15 Oct 2018 11:03:26 -0400 Received: by mail-pf1-f177.google.com with SMTP id j23-v6so9817940pfi.4; Mon, 15 Oct 2018 08:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:cc:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gjMLzo04dDb92of69bppwHovWbW/unMKFCbLg50iFvk=; b=BQ/VyYVC4wTODPFClMuwi23MyM8VD+BUP4p294ukcYauJ8zcTDvjDqKglBe1+xBPFI +NlZWOhZAp6SFRvKLwMBRyzzvpRCaXFOzp8Kfz751unB6CPcwZ2UJ/Yc37v4MQYvuLUg qsghf/0NSh54gX/7A3sMU7ktqnQszq2FInRl+RzoCKcksPDMfPG2ISj8jt7hHrLcGm7g YMYd7YPW9AnaUEEa0bywLP4Dlx42LPpUaui0QO5PZpCWqG6uCGtT10NA83dfEdtKFECX 9Miu59dhDNEtmM0Ee355Drnp9D6JB/c7HBblXIzUYQkeQPlECEpxa7Yo32MJH4NwJOR0 t0Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gjMLzo04dDb92of69bppwHovWbW/unMKFCbLg50iFvk=; b=BPpZcXZfV6tqJwf59fBTa9NaVaVmQd1srIMjPYTp7syOw0qBjMVTasEpccZJlumy2e ian14ERJLWj7DlvRVvJkfLyKe7rMEiT1hXY6V+atJUxSToOAB7EfPGpN8QXfcCSZ34aY ckiqDSWs8CAgOxP9eiHOdr8yeedkS/GIUIG1cdkZM0L/MDxvK4hx6w5Y73LIItuJEvtW 0SFo7yq7+eeviJKu3Uwgy6YjysKjgKCRQb+MwCJh5NNnCKVQdxmyG1l+d+WApdSfkAqW i2Gt/cJkcI2rVKwq4Q0iRxHrZ46ubhlVeUDi7RNovGaVHsQeWbHc5KHaPfH2KCYmPWW3 Cy6A== X-Gm-Message-State: ABuFfogDmuziOgI58rSUO5NougbwB3CAQ7A4ZvI4UbIe9aKX7qW54+hH 0tNbf0POu8dT74YLQejJvO4u04zCuKk= X-Google-Smtp-Source: ACcGV63uNFSoaoCQdyJPb4ppDWeW2byaXAv3mBqmQiFifztq2aXaNAmRkL4rYJul4BIL5zWEKWxmZw== X-Received: by 2002:aa7:8001:: with SMTP id j1-v6mr17712551pfi.73.1539615798921; Mon, 15 Oct 2018 08:03:18 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id g88-v6sm16283473pfd.181.2018.10.15.08.03.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 08:03:17 -0700 (PDT) Subject: Re: bug#10281: change in behavior of du with multiple arguments (commit efe53cc) References: <4EE64133.6070309@cs.ucla.edu> <51207435.2060901@cs.ucla.edu> <5122DBE2.10603@cs.ucla.edu> <5123AA4E.4020308@cs.ucla.edu> <5124A23D.1070100@tlinx.org> From: Assaf Gordon Message-ID: <5943df53-cebe-5db0-67b4-1a1b9d56c169@gmail.com> Date: Mon, 15 Oct 2018 09:03:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <5124A23D.1070100@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 10281 wishlist tags 10281 wontfix retitle 10281 du: hard-links counting with multiple arguments (commit efe53cc) close 10281 (triaging old bugs) [...] On 18/02/13 01:18 AM, Elliott Forney wrote: >> My reading of >> is that POSIX allows but does not require the current GNU behavior, >> and that future versions of POSIX may require the current GNU behavior. > > Thanks Paul, I agree with your reading of this. Sounds like POSIX > allows both the new and old behaviors. [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 MISSING_HEADERS Missing To: header 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.210.177 listed in list.dnswl.org] X-Debbugs-Envelope-To: control Cc: 10281@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) severity 10281 wishlist tags 10281 wontfix retitle 10281 du: hard-links counting with multiple arguments (commit efe53cc) close 10281 (triaging old bugs) [...] On 18/02/13 01:18 AM, Elliott Forney wrote: >> My reading of >> is that POSIX allows but does not require the current GNU behavior, >> and that future versions of POSIX may require the current GNU behavior. > > Thanks Paul, I agree with your reading of this. Sounds like POSIX > allows both the new and old behaviors. Long and interesting thread about du, hard-links, and POSIX interpretations, but with no follow-up in 5 years and no change in du's behavior, I'm closing this bug. regards, - assaf