Received: (at 32250) by debbugs.gnu.org; 31 Dec 2018 21:10:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 31 16:10:36 2018 Received: from localhost ([127.0.0.1]:43688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ge4pY-0007A0-4I for submit <at> debbugs.gnu.org; Mon, 31 Dec 2018 16:10:36 -0500 Received: from mail.netzguerilla.net ([217.11.57.120]:58213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kalle@HIDDEN>) id 1ge4pW-00079m-9s for 32250 <at> debbugs.gnu.org; Mon, 31 Dec 2018 16:10:35 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id E2538100014; Mon, 31 Dec 2018 22:10:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id w131Pvi0tUke; Mon, 31 Dec 2018 22:10:26 +0100 (CET) Received: from [IPv6:2003:dd:ff0d:2301:1bb0:db22:97a9:a8f9] (p200300DDFF0D23011BB0DB2297A9A8F9.dip0.t-ipconnect.de [IPv6:2003:dd:ff0d:2301:1bb0:db22:97a9:a8f9]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 1A5FF100013; Mon, 31 Dec 2018 22:10:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=sal2018; t=1546290626; bh=npvXKa2dzRwSx3O2UDLWWH4vDC2y835ZPX5Mm5L5bGY=; h=Subject:To:References:From:Date:In-Reply-To:From; b=He9s5bPhpDYSzglwragfkFF2/S2j1ukc5QE7g5Ubsarx2FzoHF1+ziHfQgM4htZHX UJXpw7GPaY6tbE6uQo1MLVl7rIxYf40KgPgdjXVA6b5dBE/AOjBfc10jKlq1vYIDYL l2wh3SemIa7mhXt0rEM0KGdSH1J1mEpkufT0euJ4UNXUQuf+xcL6iJvNiZpmZEZY3t t6dxPj1TH4vqADrYswRthmRfYTlNvgk1Qop1MoNP3ImI7uxm+sN82rL6Z35NjfbA4C qTxwIV1mx5af6o7JtE07QsI1LcpY6WLdjjES40poXj0nUT90w78IhoUa9ZZcNsydxM HRlK6ybveqs3w== Subject: Re: bug#32250: ls -explain better the different times To: Assaf Gordon <assafgordon@HIDDEN>, 32250 <at> debbugs.gnu.org References: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> From: kalle <kalle@HIDDEN> Message-ID: <348cc814-7257-69f1-7480-0c8d48dded6e@HIDDEN> Date: Mon, 31 Dec 2018 22:10:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32250 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 (-) hello, i'm happy that so much later someone cares about my bug-report. Am 31.12.2018 um 05:13 schrieb Assaf Gordon: > Hello, > > On 2018-07-23 9:54 a.m., kalle wrote: >> in the documentation of ls the concept of the different times is not >> explained sufficiently well (mtime, atime, ctime). I'm sorry to discover that when I wrote these lines, I referred to version 8.26-3, while it was not the most actual. The section "File timestamps" didn't exist then. However, I still believe that the times are not described precisely enough by the terms "write","read","change" until it is totally clear, what is meant by these (it is not totally clear to me). Therefore I welcome your summary table, although not being able to read it, since it's only a patch. > > The dedicated file-timestamp section ( > https://www.gnu.org/software/coreutils/manual/html_node/File-timestamps.html > ) is indeed perhaps a bit too dense (lots of text > with no quick examples). > > Attached is an improvement suggestion, adding a summary table, > and details examples. > > Comments and feedback welcomed, > - assaf > > greetings, kalle
bug-coreutils@HIDDEN
:bug#32250
; Package coreutils
.
Full text available.Received: (at 32250) by debbugs.gnu.org; 31 Dec 2018 08:47:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 31 03:47:22 2018 Received: from localhost ([127.0.0.1]:42806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdtEH-0003l0-Ru for submit <at> debbugs.gnu.org; Mon, 31 Dec 2018 03:47:22 -0500 Received: from mail-pf1-f181.google.com ([209.85.210.181]:36031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gdtEF-0003km-LC for 32250 <at> debbugs.gnu.org; Mon, 31 Dec 2018 03:47:20 -0500 Received: by mail-pf1-f181.google.com with SMTP id b85so13015315pfc.3 for <32250 <at> debbugs.gnu.org>; Mon, 31 Dec 2018 00:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=K3i+Td1xvAbcA6Yu7+d1pto4ETzNkCy1KWgCNGy97r0=; b=T7b+gO9gX5oGICdsUHkBgXMd5uMDtw+Vr/i8HQ3y47obYzIboBEoUqVgD1TxPGTziJ CMDyLmAvMFU4ORKGN2SpZE5KMt5RR1AAniBy2k/fyOKjxkC0d3hNgs2xKi4Jb4qtn0xv t3KIc26hqxSffq0yvfYq7sF8/nJL+3h2zNIYqTRpar0EKkEt+wDZpge+gX6uiKDYez2E Rz5MEsNLbzwuYE1URP4y48yVdfdZBjXa7g7ca8PALU0U4YbYrLa7KwLIdnsEL4xa6KGx NrOmgdjoDfBh3iTAXT2cNKnT3FminQay5A32A9H8CXAFEieCln0T9KK1GS9AdDISDWmv YDAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K3i+Td1xvAbcA6Yu7+d1pto4ETzNkCy1KWgCNGy97r0=; b=sPz1TFjJaxeEVn+ZUZSKLBLhXtMzxbmeit0CJTaLLG+dkM6L8JDZVQuDfIwY2OhNVk T/PBUHaK1AgqWSsvc3vZWnS4wfcuru6qOUqZOPSzqf93S1pkEdWK9kpBOqhEh/9ATppd Mhu5Ug1aDri+PZ9venHCHZgbrwxIaFbidhFpzjI9+pSrf1IvvS4KtNokGOVBl44LBkla tLj7aJXYLyU8ekO1LoZ5m5HH/S84Wte5U1c70SIMpwcMM70pUvfFonHVVz+WRrgRlKH9 uHk2Hn62mDwIa5yjizWaZCEMICiBbHTPJFNNT4gElnp8nmENRhfwGr4m8RbzXTU04GBm XkOQ== X-Gm-Message-State: AJcUukf82ERnjlk9lUdqA7xHjbB7MtIWNAgoZRS6QVYpTYAT56oFABsH 5ok8rnlF7sXdyGYAQBtFnUmFi01X X-Google-Smtp-Source: ALg8bN4JPDD24N8G6483b3ptNmLbUkc7lCJBHHBCI6PfAx2u7gwj/U7RmUO3f2xkj6OP6n4TSqGMSg== X-Received: by 2002:a63:c904:: with SMTP id o4mr6802361pgg.331.1546246033149; Mon, 31 Dec 2018 00:47:13 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id n186sm65071595pfn.137.2018.12.31.00.47.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 00:47:11 -0800 (PST) Subject: Re: bug#32250: ls -explain better the different times To: Paul Eggert <eggert@HIDDEN>, kalle <kalle@HIDDEN>, 32250 <at> debbugs.gnu.org References: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> <9167d924-aebb-f0cb-7ec4-a1a655f1cd91@HIDDEN> From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <2c16d5ac-ca2e-a6ef-c62c-56709cb06399@HIDDEN> Date: Mon, 31 Dec 2018 01:47:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <9167d924-aebb-f0cb-7ec4-a1a655f1cd91@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32250 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 (-) Hello Paul, On 2018-12-31 1:05 a.m., Paul Eggert wrote: > Assaf Gordon wrote: >> Attached is an improvement suggestion, adding a summary table, >> and details examples. >> >> Comments and feedback welcomed, Thank you for reviewing and providing feedback - goes to show that things aren't that easily clear (no from anecdotal testing and not from reading my text). Before I go on - do you (and others) think it's worthwhile expanding the timestamp section? if not, I won't spend more time on it. If yes, then: > I'm afraid that table goes into so much detail that it will overwhelm > the user. Why, for example, have separate lines for chmod and chown? chown/chmod can indeed by merged, or one of them omitted. there's a tradeoff between being detailed (helping new users to easily find information without too much reading) and being too verbose. I'm sure couple of further iterations will improve the text. > Also, some of the entries look too system-specific. [...] Very good point - that will likely stumble users as well. We can perhaps explicitly say that some of these are system specific, or remove the system-specific ones? > Also, since when does "cp -p a b" not update a's access time? > Traditional 'cp' does update the source's access time, and POSIX seems > to require that. Thanks for pointing this out. I went back and double-checked: on my system (linux 4.9.65-3+deb9u1, ext4 filesystem mounted with relatime), the first time a file is copied with "cp -p a b", a's access time is updated. if "a" is then copied few more times, its atime remains the same, and the new files get its same atime (i.e., not the current time). IIUC, this is the effect of "relatime" and the fact the "a" was not modified between coping (However I could be wrong). In any case, the table should be corrected, and perhaps this issue should be clarified. thanks again, - assaf
bug-coreutils@HIDDEN
:bug#32250
; Package coreutils
.
Full text available.Received: (at 32250) by debbugs.gnu.org; 31 Dec 2018 08:05:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 31 03:05:11 2018 Received: from localhost ([127.0.0.1]:42801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdsZT-0002kL-EZ for submit <at> debbugs.gnu.org; Mon, 31 Dec 2018 03:05:11 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1gdsZR-0002k4-MD for 32250 <at> debbugs.gnu.org; Mon, 31 Dec 2018 03:05:10 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C29CA160E89; Mon, 31 Dec 2018 00:05:03 -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 YAS1Syq9W1wO; Mon, 31 Dec 2018 00:05:03 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0C6A5160E8A; Mon, 31 Dec 2018 00:05:03 -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 9Rd2OqTZyK7i; Mon, 31 Dec 2018 00:05:02 -0800 (PST) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D9E50160E88; Mon, 31 Dec 2018 00:05:02 -0800 (PST) Subject: Re: bug#32250: ls -explain better the different times To: Assaf Gordon <assafgordon@HIDDEN>, kalle <kalle@HIDDEN>, 32250 <at> debbugs.gnu.org References: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <9167d924-aebb-f0cb-7ec4-a1a655f1cd91@HIDDEN> Date: Mon, 31 Dec 2018 00:05:02 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32250 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 (---) Assaf Gordon wrote: > Attached is an improvement suggestion, adding a summary table, > and details examples. > > Comments and feedback welcomed, I'm afraid that table goes into so much detail that it will overwhelm the user. Why, for example, have separate lines for chmod and chown? Also, some of the entries look too system-specific. For example, POSIX doesn't require that 'ls DIR' must update the access time of DIR, many systems don't update access times even when POSIX says they should, and on some systems symbolic links' timestamps are irrelevant and/or unchangeable. Also, since when does "cp -p a b" not update a's access time? Traditional 'cp' does update the source's access time, and POSIX seems to require that.
bug-coreutils@HIDDEN
:bug#32250
; Package coreutils
.
Full text available.Received: (at 32250) by debbugs.gnu.org; 31 Dec 2018 04:13:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 30 23:13:42 2018 Received: from localhost ([127.0.0.1]:42751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gdoxR-0001Xb-PW for submit <at> debbugs.gnu.org; Sun, 30 Dec 2018 23:13:42 -0500 Received: from mail-pg1-f177.google.com ([209.85.215.177]:34371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1gdoxP-0001XM-R5 for 32250 <at> debbugs.gnu.org; Sun, 30 Dec 2018 23:13:40 -0500 Received: by mail-pg1-f177.google.com with SMTP id j10so12311066pga.1 for <32250 <at> debbugs.gnu.org>; Sun, 30 Dec 2018 20:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=5ZyOfBwSr9J5eppyaVURrDBixIqFKLPlrfX2jWh+aAM=; b=NwDpHgcLZk5ZYJYay9rIJ2QFHI/ymT7WnfpDX/aYer8JvPMxaZG0swO4mM6dPLXqjh h6H/n9JqWi8dsc+D2PZsOGcyI+VTOEaMYa+LGv0LFUWOfaa8kfobkq54zfG20pKGcLr+ gxxc1c5XHb2K2WsEr5qQISKhylLFzNpOwTZqY6DG1u8znVTaDxn65XZQRedDxhRY41wI e2rGODG/d6JchZx0Gio76R8afqFHsRQeT0FUsCmPAcSw9brbGHSjzbC0EaeuFeFD6lUD LInpjtcSH6mSGkt121hOtNOsQCVleMawB40nWfK2caEB7+4qLyVRPPm49g1c7o6DwsHC /y3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=5ZyOfBwSr9J5eppyaVURrDBixIqFKLPlrfX2jWh+aAM=; b=Y+/f7hHm6Aned9BSLVtI2Bxau+C3JlX3wabI9am+lBl6EewV4IxspTqDmuXeCb58E0 DjVYTzwpmY7S09IfMcMIt00HYx3Eu5u67UYaRcsU/U225YlIqYMJK+YRXCMsnXsviH5L uinNJDXrmPkVFzLzrisfCZggH5xWt6Y7iA1mq1jE/hwpIRAxSI/Vr/IkV0L2K3czfPoI 3mv79oVOqXo1Be6f45z89NjcMzOlTPTuy6n+Ka9BQBfp2BB9ZUJLpr6JeEGrXWYvmjt/ W+puCTY/7pe/eqBXg0NiWVod/HqNO+NHxAxJM3y6n7HvLVi2pmHVmHb7DG5uhpN89Xl0 cfKQ== X-Gm-Message-State: AJcUukdkqnn0QYz42gtrTdrQZj7qgmCkgjXIuxrjbOajcR2lOShASYDt ZYeQZFok1N7wd4iCOb+rFJd9rezu X-Google-Smtp-Source: ALg8bN5nrVN6+sQqoJLBVYeFNQUssIgowWARU25iKcdqZajVJAy54FHFodnLPzAe3jnlKy7Hl50s1Q== X-Received: by 2002:a63:6704:: with SMTP id b4mr6374894pgc.100.1546229613188; Sun, 30 Dec 2018 20:13:33 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id v14sm112112975pgf.3.2018.12.30.20.13.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 20:13:31 -0800 (PST) Subject: Re: bug#32250: ls -explain better the different times To: kalle <kalle@HIDDEN>, 32250 <at> debbugs.gnu.org References: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <8ddb6559-bf5b-12cf-0af8-2d5eab226f0b@HIDDEN> Date: Sun, 30 Dec 2018 21:13:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> Content-Type: multipart/mixed; boundary="------------F7378B3EE4B15FC2C79073E9" Content-Language: en-US X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32250 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 (-) This is a multi-part message in MIME format. --------------F7378B3EE4B15FC2C79073E9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, On 2018-07-23 9:54 a.m., kalle wrote: > in the documentation of ls the concept of the different times is not > explained sufficiently well (mtime, atime, ctime). The dedicated file-timestamp section ( https://www.gnu.org/software/coreutils/manual/html_node/File-timestamps.html ) is indeed perhaps a bit too dense (lots of text with no quick examples). Attached is an improvement suggestion, adding a summary table, and details examples. Comments and feedback welcomed, - assaf --------------F7378B3EE4B15FC2C79073E9 Content-Type: text/x-patch; name="0001-doc-expand-file-timestamp-section-atime-ctime-mtime.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-doc-expand-file-timestamp-section-atime-ctime-mtime.pat"; filename*1="ch" From f5774f87df4af912fd826f3d4208c9cd766e7524 Mon Sep 17 00:00:00 2001 From: Assaf Gordon <assafgordon@HIDDEN> Date: Sun, 30 Dec 2018 20:28:28 -0700 Subject: [PATCH] doc: expand file timestamp section (atime,ctime,mtime) Requested by kalle <kalle@HIDDEN> in https://bugs.gnu.org/32250 . * doc/coreutils.texi (File timestamps): Add summary table and examples. --- doc/coreutils.texi | 279 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 279 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index fd6d578ac..56831e46a 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -18877,6 +18877,132 @@ copy of the file, including the new permissions value. Another operation that modifies a file's ctime without affecting the others is renaming. +@multitable @columnfractions .25 .25 .25 .25 + +@headitem +@tab Access Time +@tab Modify Time +@tab Change Time + +@item abbreviation +@tab @code{atime} +@tab @code{mtime} +@tab @code{ctime} + +@item Updated when +@tab content read +@tab content modified +@tab meta-data modified @*(e.g., permissions, owner, file name) + +@headitem Files @c{second line in next headitem} +@tab Access Time +@tab Modify Time +@tab Change Time + +@headitem Affected by: + +@item @command{touch} +@tab yes +@tab yes +@tab yes + +@item @command{touch -a} +@tab yes +@tab no +@tab yes + +@item @command{touch -m} +@tab no +@tab yes +@tab yes + +@item @command{chmod} +@tab no +@tab no +@tab yes + +@item @command{chown} +@tab no +@tab no +@tab yes + +@item @command{mv} +@tab no +@tab no +@tab yes + +@headitem Directories @*Affected by: + +@item Listing files +@tab yes +@tab no +@tab no + +@item Creating a new file +@tab no +@tab yes +@tab yes + +@item Renaming a file +@tab no +@tab yes +@tab yes + +@item meta-data changes to a file inside the directory +@tab no +@tab no +@tab no + + +@headitem @c{add a space for cleaner visuals } + +@headitem Running @command{cp SRC DST}: +@tab Access Time +@tab Modify Time +@tab Change Time + +@item Changes to @file{SRC} +@tab yes +@tab no +@tab no + +@item Changes to @file{DST} +@tab yes +@tab yes +@tab yes + +@headitem Running @*@command{cp -p SRC DST}: +@item Changes to @file{SRC} +@tab no +@tab no +@tab no + +@item Changes to @file{DST} +@tab (same as @file{SRC}) +@tab (same as @file{SRC}) +@tab yes @* (set to current time) + +@headitem Displaying timestamps +@item Show with @command{ls} option +@tab @option{-l -u} +@tab @option{-l} +@tab @option{-l -c} + +@item @command{stat} @option{-c} format @*(human readable) +@tab @option{%x} +@tab @option{%y} +@tab @option{%z} + +@item @command{stat} @option{-c} format @*(seconds since epoch) +@tab @option{%X} +@tab @option{%Y} +@tab @option{%Z} + +@end multitable + +@* +@* + Naively, a file's atime, mtime, and ctime are set to the current time whenever you read, write, or change the attributes of the file respectively, and searching a directory counts as reading it. A @@ -18920,6 +19046,159 @@ and microsecond resolution for the primitive that @command{touch} uses to set a file's timestamp to an arbitrary value. +@unnumberedsec Timestamp examples + +These two shell functions (@code{lstime} and @code{stattime}) will be +used in the following examples to show the three timestamps (access, modify, +change times) of a file: + +@example +lstime() +@{ + printf "Access (read): " ; ls -log -u "$1" ; + printf "Modify (data): " ; ls -log "$1" ; + printf "Change (meta): " ; ls -log -c "$1" ; +@} + +stattime() +@{ + stat --printf "File name: %n\n" "$1" ; + stat --printf " Access (read): %x\n" "$1" ; + stat --printf " Modify (data): %y\n" "$1" ; + stat --printf " Change (meta): %z\n" "$1" ; +@} +@end example + +@iftex +@exdent +@end iftex +Starting with an empty directory, create a new file (@file{myfile}) +then examine its time stamps (which will be all identical): + +@example +$ touch myfile + +$ lstime myfile +Access (read): -rw-r--r-- 1 0 Dec 30 00:01 myfile +Modify (data): -rw-r--r-- 1 0 Dec 30 00:01 myfile +Change (meta): -rw-r--r-- 1 0 Dec 30 00:01 myfile + +$ stattime myfile +File name: myfile + Access (read): 2018-12-30 00:01:04.097305081 -0700 + Modify (data): 2018-12-30 00:01:04.097305081 -0700 + Change (meta): 2018-12-30 00:01:04.097305081 -0700 +@end example + +@iftex +@exdent +@end iftex +Delay for 60 seconds, then change the file's permission mode. +This is a meta-data change, hence @code{ctime} will be updated: + +@example +$ sleep 60 +$ chmod g+w myfile + +$ lstime myfile +Access (read): -rw-rw-r-- 1 0 Dec 30 00:01 myfile +Modify (data): -rw-rw-r-- 1 0 Dec 30 00:01 myfile +Change (meta): -rw-rw-r-- 1 0 Dec 30 00:02 myfile + +$ stattime myfile +File name: myfile + Access (read): 2018-12-30 00:01:04.097305081 -0700 + Modify (data): 2018-12-30 00:01:04.097305081 -0700 + Change (meta): 2018-12-30 00:02:09.735558316 -0700 +@end example + +@iftex +@exdent +@end iftex +Delay for 120 seconds, then read the file. This is a content read, +hence @code{atime} will be updated: + +@example +$ sleep 120 +$ cat myfile > /dev/null + +$ lstime myfile +Access (read): -rw-rw-r-- 1 0 Dec 30 00:04 myfile +Modify (data): -rw-rw-r-- 1 0 Dec 30 00:01 myfile +Change (meta): -rw-rw-r-- 1 0 Dec 30 00:02 myfile + +$ stattime myfile +File name: myfile + Access (read): 2018-12-30 00:04:16.330307979 -0700 + Modify (data): 2018-12-30 00:01:04.097305081 -0700 + Change (meta): 2018-12-30 00:02:09.735558316 -0700 +@end example + +@iftex +@exdent +@end iftex +Delay for 180 seconds, then append to the end of the file +This is content modification, hence @code{mtime} and @code{ctime} will +be updated (@code{stattime} omitted for brevity from now on): + +@example +$ sleep 180 +$ echo a >> myfile + +$ lstime myfile +Access (read): -rw-rw-r-- 1 2 Dec 30 00:04 myfile +Modify (data): -rw-rw-r-- 1 2 Dec 30 00:07 myfile +Change (meta): -rw-rw-r-- 1 2 Dec 30 00:07 myfile +@end example + +@iftex +@exdent +@end iftex +Delay for 240 seconds, then copy @file{myfile} to a new file +(@file{otherfile}). The source file was read and its @code{atime} was +updated. All timestamps of the destination file are set to the current +time: + +@example +$ sleep 240 +$ cp myfile otherfile + +$ lstime myfile +Access (read): -rw-rw-r-- 1 2 Dec 30 00:11 myfile +Modify (data): -rw-rw-r-- 1 2 Dec 30 00:07 myfile +Change (meta): -rw-rw-r-- 1 2 Dec 30 00:07 myfile + +$ lstime otherfile +Access (read): -rw-rw-r-- 1 2 Dec 30 00:11 myfile +Modify (data): -rw-rw-r-- 1 2 Dec 30 00:11 myfile +Change (meta): -rw-rw-r-- 1 2 Dec 30 00:11 myfile +@end example + +@iftex +@exdent +@end iftex +To copy the access time and modification time of the source file to +the destination file, and prevent updating the access time of the +source file, use @command{cp -p}. The destination file's @code{ctime} +will always be updated: + +@example +$ sleep 60 +$ cp -p myfile thirdfile + +$ lstime myfile +Access (read): -rw-rw-r-- 1 2 Dec 30 00:11 myfile +Modify (data): -rw-rw-r-- 1 2 Dec 30 00:07 myfile +Change (meta): -rw-rw-r-- 1 2 Dec 30 00:07 myfile + +$ lstime thirdfile +Access (read): -rw-rw-r-- 1 2 Dec 30 00:11 thirdfile +Modify (data): -rw-rw-r-- 1 2 Dec 30 00:07 thirdfile +Change (meta): -rw-rw-r-- 1 2 Dec 30 00:12 thirdfile +@end example + + + @include parse-datetime.texi -- 2.11.0 --------------F7378B3EE4B15FC2C79073E9--
bug-coreutils@HIDDEN
:bug#32250
; Package coreutils
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Assaf Gordon <assafgordon@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Jul 2018 15:54:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 23 11:54:59 2018 Received: from localhost ([127.0.0.1]:54251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1fhdAo-0007Ln-SJ for submit <at> debbugs.gnu.org; Mon, 23 Jul 2018 11:54:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kalle@HIDDEN>) id 1fhdAn-0007La-2j for submit <at> debbugs.gnu.org; Mon, 23 Jul 2018 11:54:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <kalle@HIDDEN>) id 1fhdAh-0007pR-2c for submit <at> debbugs.gnu.org; Mon, 23 Jul 2018 11:54:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <kalle@HIDDEN>) id 1fhdAg-0007pE-Uh for submit <at> debbugs.gnu.org; Mon, 23 Jul 2018 11:54:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <kalle@HIDDEN>) id 1fhdAf-00069e-Vp for bug-coreutils@HIDDEN; Mon, 23 Jul 2018 11:54:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <kalle@HIDDEN>) id 1fhdAc-0007o6-Uy for bug-coreutils@HIDDEN; Mon, 23 Jul 2018 11:54:50 -0400 Received: from mail.netzguerilla.net ([217.11.57.120]:40295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <kalle@HIDDEN>) id 1fhdAc-0007mv-KG for bug-coreutils@HIDDEN; Mon, 23 Jul 2018 11:54:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id 502E410001B for <bug-coreutils@HIDDEN>; Mon, 23 Jul 2018 17:54:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([217.11.57.120]) by localhost (sal.netzguerilla.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1681P6AO1sfr for <bug-coreutils@HIDDEN>; Mon, 23 Jul 2018 17:54:43 +0200 (CEST) Received: from [IPv6:2003:d9:ebc5:1a00:f70e:cc0f:3d19:3924] (p200300D9EBC51A00F70ECC0F3D193924.dip0.t-ipconnect.de [IPv6:2003:d9:ebc5:1a00:f70e:cc0f:3d19:3924]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 011D2100015 for <bug-coreutils@HIDDEN>; Mon, 23 Jul 2018 17:54:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1532361283; bh=+VR65VYZu2nt9MZhaGUmciVj0sESCw4mOaIrFu6ibWg=; h=To:From:Subject:Date:From; b=AbrZF6zm0tYmvFOnGOdsfkvX08zxrGwz2+cWd9F9pHvZcugZIz6RyBJKBf+kFlX3U cKzZkzodym+NH0zqOM19bT+ErEd+lArzkMt3byBJdjrZ8GRjvSnMeV9IxYPTywN6uL UC8eQj6+AxTTLxphhtMQup5jlofotIFM033nErp2mNqrdkSeeSyIGMDIQPeSpsvz/F yo0FlHcCprorONUDwJMttqM3XFEWot64PavkqG0rpulD14jIc59KW/gZSayjOkVlXs vfWLjVLkMSgyOkf3yIGQhbOhAeEDOL0LxG4L/Putd6jTNweC5H2+pUfdmkWcizo3Xj zFIa0tI7gtk1w== To: bug-coreutils@HIDDEN From: kalle <kalle@HIDDEN> Subject: ls -explain better the different times Message-ID: <a882cfc6-0f3a-a21a-3c93-b48d18a4ae21@HIDDEN> Date: Mon, 23 Jul 2018 17:54:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -6.0 (------) hello, in the documentation of ls the concept of the different times is not explained sufficiently well (mtime, atime, ctime). greetings, kalle
kalle <kalle@HIDDEN>
:bug-coreutils@HIDDEN
.
Full text available.bug-coreutils@HIDDEN
:bug#32250
; Package coreutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.