GNU logs - #49428, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49428: RFE: for --time have option to only include contents, not dir itself.
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 06 Jul 2021 05:21:02 +0000
Resent-Message-ID: <handler.49428.B.16255488308194 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 49428
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 49428 <at> debbugs.gnu.org
X-Debbugs-Original-To: Coreutils <bug-coreutils@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.16255488308194
          (code B ref -1); Tue, 06 Jul 2021 05:21:02 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m0dVW-000286-N7
	for submit <at> 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 <coreutils@HIDDEN>) id 1m0dVU-00027y-J9
 for submit <at> 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 <coreutils@HIDDEN>)
 id 1m0dVU-0005sE-C1
 for bug-coreutils@HIDDEN; 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 <coreutils@HIDDEN>)
 id 1m0dVS-0002Je-2Q
 for bug-coreutils@HIDDEN; 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 <bug-coreutils@HIDDEN>; Mon, 5 Jul 2021 22:20:00 -0700
Message-ID: <60E3E7A6.7090906@HIDDEN>
Date: Mon, 05 Jul 2021 22:18:30 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
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@HIDDEN;
 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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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!





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: L A Walsh <coreutils@HIDDEN>
Subject: bug#49428: Acknowledgement (RFE: for --time have option to only
 include contents, not dir itself.)
Message-ID: <handler.49428.B.16255488308194.ack <at> debbugs.gnu.org>
References: <60E3E7A6.7090906@HIDDEN>
X-Gnu-PR-Message: ack 49428
X-Gnu-PR-Package: coreutils
Reply-To: 49428 <at> debbugs.gnu.org
Date: Tue, 06 Jul 2021 05:21:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 49428 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
49428: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49428
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49428: RFE: for --time have option to only include contents,  not dir itself.
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 06 Jul 2021 06:58:01 +0000
Resent-Message-ID: <handler.49428.B.162555466517663 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49428
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 49428 <at> debbugs.gnu.org
X-Debbugs-Original-To: 49428 <at> debbugs.gnu.org, Coreutils <bug-coreutils@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.162555466517663
          (code B ref -1); Tue, 06 Jul 2021 06:58:01 +0000
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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m0f1c-0004ao-W4
	for submit <at> 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 <coreutils@HIDDEN>) id 1m0f1b-0004ag-ON
 for submit <at> 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 <coreutils@HIDDEN>)
 id 1m0f1b-0000wf-FP
 for bug-coreutils@HIDDEN; 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 <coreutils@HIDDEN>)
 id 1m0f1Z-0002zt-Pr
 for bug-coreutils@HIDDEN; 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@HIDDEN>
Date: Mon, 05 Jul 2021 23:56:37 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
References: <60E3E7A6.7090906@HIDDEN>
In-Reply-To: <60E3E7A6.7090906@HIDDEN>
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@HIDDEN;
 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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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






Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#49428: RFE: for --time have option to only include contents,  not dir itself.
Resent-From: L A Walsh <coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 06 Jul 2021 06:58:02 +0000
Resent-Message-ID: <handler.49428.B49428.162555466217644 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 49428
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 49428 <at> debbugs.gnu.org
X-Debbugs-Original-To: 49428 <at> debbugs.gnu.org, Coreutils <bug-coreutils@HIDDEN>
Received: via spool by 49428-submit <at> debbugs.gnu.org id=B49428.162555466217644
          (code B ref 49428); Tue, 06 Jul 2021 06:58:02 +0000
Received: (at 49428) by debbugs.gnu.org; 6 Jul 2021 06:57:42 +0000
Received: from localhost ([127.0.0.1]:47137 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m0f1Z-0004aW-Qe
	for submit <at> debbugs.gnu.org; Tue, 06 Jul 2021 02:57:41 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:54796
 helo=Ishtar.sc.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1m0f1X-0004aO-Vr
 for 49428 <at> debbugs.gnu.org; Tue, 06 Jul 2021 02:57:40 -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@HIDDEN>
Date: Mon, 05 Jul 2021 23:56:37 -0700
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
References: <60E3E7A6.7090906@HIDDEN>
In-Reply-To: <60E3E7A6.7090906@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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






Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 21 Feb 2022 09:54:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 21 04:54:09 2022
Received: from localhost ([127.0.0.1]:35089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nM5OS-0004QH-Uo
	for submit <at> 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 <eggert@HIDDEN>) id 1nM5OQ-0004Pl-HA
 for control <at> 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 <control <at> debbugs.gnu.org>; 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 <control <at> debbugs.gnu.org>;
 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 <control <at> debbugs.gnu.org>; 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 <control <at> debbugs.gnu.org>;
 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 <control <at> debbugs.gnu.org>; Mon, 21 Feb 2022 01:53:59 -0800 (PST)
Message-ID: <302e53e9-8f10-b82c-6824-9ccec177df8d@HIDDEN>
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 <at> debbugs.gnu.org
From: Paul Eggert <eggert@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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





Last modified: Mon, 21 Feb 2022 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.