From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 06 01:20:30 2021 Received: (at submit) by debbugs.gnu.org; 6 Jul 2021 05:20:30 +0000 Received: from localhost ([127.0.0.1]:47069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0dVW-000286-N7 for submit@debbugs.gnu.org; Tue, 06 Jul 2021 01:20:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:58766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0dVU-00027y-J9 for submit@debbugs.gnu.org; Tue, 06 Jul 2021 01:20:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0dVU-0005sE-C1 for bug-coreutils@gnu.org; Tue, 06 Jul 2021 01:20:28 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:59040 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0dVS-0002Je-2Q for bug-coreutils@gnu.org; Tue, 06 Jul 2021 01:20:27 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 1665JwXK077016 for ; Mon, 5 Jul 2021 22:20:00 -0700 Message-ID: <60E3E7A6.7090906@tlinx.org> Date: Mon, 05 Jul 2021 22:18:30 -0700 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Coreutils Subject: RFE: for --time have option to only include contents, not dir itself. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: 0 X-Spam_score: -0.0 X-Spam_bar: / X-Spam_report: (-0.0 / 5.0 requ) BAYES_20=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) I did a re-install-in-place on windows that reset the dirtimes on all the dirs to the date I did the re-inst. As a partial recovery, I want to be able to reset the date to the time of the last modified file in the dir. I thought to use: du -s --time DIR but it's not just showing (from manpage): --time show time of the last modification of any file in the directory, or any of its subdirectories instead it is showing the above & the time on the dir itself. Some people may want to include the dir time, but that's usually obvious by the time on the directory. Nevertheless, perhaps a "--contents" flag to not include the size of the directory-inode itself might be useful? Sadly --separate-dirs doesn't really separate out all the dir-sizes either, but only subdirs. *sigh* tnx! From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 06 02:57:45 2021 Received: (at submit) by debbugs.gnu.org; 6 Jul 2021 06:57:45 +0000 Received: from localhost ([127.0.0.1]:47140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0f1c-0004ao-W4 for submit@debbugs.gnu.org; Tue, 06 Jul 2021 02:57:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:53078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0f1b-0004ag-ON for submit@debbugs.gnu.org; Tue, 06 Jul 2021 02:57:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0f1b-0000wf-FP for bug-coreutils@gnu.org; Tue, 06 Jul 2021 02:57:43 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:35058 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0f1Z-0002zt-Pr for bug-coreutils@gnu.org; Tue, 06 Jul 2021 02:57:43 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 1666vAbB085115; Mon, 5 Jul 2021 23:57:14 -0700 Message-ID: <60E3FEA5.9010309@tlinx.org> Date: Mon, 05 Jul 2021 23:56:37 -0700 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: 49428@debbugs.gnu.org, Coreutils Subject: Re: bug#49428: RFE: for --time have option to only include contents, not dir itself. References: <60E3E7A6.7090906@tlinx.org> In-Reply-To: <60E3E7A6.7090906@tlinx.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) First stab at a script is really slow... find dirs, then find all files in the dir: There's gotta be a faster way...ug! lastt=1 shopt -s lastpipe find "$1" -depth -type d | while read dr;do t=$(find "$dr" -xdev -maxdepth 1 -mindepth 1 ! -name . -a ! -name .. -printf "%T@\n" | cut -d. -f1|sort -rn|head -1) if [[ ! $t ]]; then t=$lastt fi if [[ ! $t ]]; then echo "dir=$dr"; exit 1; fi #echo "touch -d \"@$t\" \"$dr\"" touch -d "@$t" "$dr" lastt=$t done From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 21 04:54:09 2022 Received: (at control) by debbugs.gnu.org; 21 Feb 2022 09:54:09 +0000 Received: from localhost ([127.0.0.1]:35089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nM5OS-0004QH-Uo for submit@debbugs.gnu.org; Mon, 21 Feb 2022 04:54:09 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nM5OQ-0004Pl-HA for control@debbugs.gnu.org; Mon, 21 Feb 2022 04:54:07 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 47F4C160103 for ; Mon, 21 Feb 2022 01:54:00 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id EeoF-J7Yq3VB for ; Mon, 21 Feb 2022 01:53:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 80CD2160106 for ; Mon, 21 Feb 2022 01:53:59 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id G3xxhhAF1RK9 for ; Mon, 21 Feb 2022 01:53:59 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 60C33160103 for ; Mon, 21 Feb 2022 01:53:59 -0800 (PST) Message-ID: <302e53e9-8f10-b82c-6824-9ccec177df8d@cs.ucla.edu> Date: Mon, 21 Feb 2022 01:53:59 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Organization: UCLA Computer Science Department Subject: coreutils bug reports Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) severity 47701 wishlist severity 53145 wishlist severity 50940 wishlist severity 49679 wishlist severity 49428 wishlist severity 47701 wishlist severity 47700 wishlist severity 47380 wishlist severity 47243 wishlist tags 47151 wontfix