X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB92C3858034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1636916227; bh=kHsXkbXGwOe2uj76nmtwHBZsDPAsJY/uHBpDoxuOBhg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=V947/efzI8n4VRPnYLSlKtHyMd03o1KmKy2qZbV0fZyCs8LEYQGZRXJaDGi9qkgjm oMh/1Y8zkWMt9JBVoiQEUzGAo8pEydldBAaGVPJuDIDNm5wGGNpaZL2qf8kPHoYrFC 0SEfxE+dPrRDOENsszH2pBbmXIHfjgCBrsRwV+4I= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F6A43858D39 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WI/2/jKOUBk8d3rS79TSo9AoZyfo60RFA8l9nje+zRm4+TFibaoDs+of/YfNk7wPdl7rXDdcRhmazOuXFGnnGrPZ7DTB40FHZhkAlVaCNU5y9xPdzaMHiL6/cSLxjQiFqhYUYHtBv8xq9QH+cMD18xOvAkGjk/XUkoo0+TiBgrrcvPp9dkeTGebM+AVnxQZO+EyHW8m6YDYWT2/ipPRqvh9fnDRyvSpbTA1k1LCyNTqqP1V3RIRcXb51Un5rlBKhElvGhiheIHP9yLGzhLqg6EMzJzE/fufrH+u+U82k5MKFHc3L15QHbxhP/k9fI6pKfTG3otkVmq8gI+dh8ESbkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zbEnGJP01oAgGgwHdZjlMc+eCH8ivTTxl59YgvVQp84=; b=SXUTy46deohYY0NBnRpZqxjVSeYSEV2LDVvdievZ6TpXEfozditGut3MgoYfDwZza8kwKkXCewcsaI+x7FhvkoChBL6dx/4SHxLuuG/+jXw6V5p6JWvFP6b9v0jznQmzWVPeTm6J81p3imP/aPb82no2KA8Yc4zpwUIJ3HMgGsJrPJ0XyBjDcPm9YgLjXU/a7jENCaL44yYzNqw6XI5XxQA5QMVob5yeeXlj+cTgBCE+QetHRK60Hvs3oy1MNCus0ShkUBdJ5b9wJq7OEhe57D+LL/iiFaar+MDBYXSrgXOQMwOnyQmyyYAxwZgJP+ylJRqJjAzBVCIV5q8jgj6AXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none To: "cygwin AT cygwin DOT com" Subject: Editing with vim clears Windows 10 file system archive bit. Thread-Topic: Editing with vim clears Windows 10 file system archive bit. Thread-Index: AQHX2YjfqUWVEwVDT0KOl/dB9rU2+w== Date: Sun, 14 Nov 2021 18:56:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [nCIFHkGsONHqFjs9KhWmZonmE01zLO/2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a88f71a7-049b-40bd-ea99-08d9a7a077e5 x-ms-traffictypediagnostic: SA0PR04MB7354: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QC9Ebcg0W/BkwQjBklaRLs3dFWOw/J4Du0qNPdnOXGiJ5QATl8654b+xZp8h2M2jqVGJPWe08AtHZVSxQTDSlSQB4Bd05z+7WEj6h7QBKZGxr8ww5ymuKeBZOms8GTZm4h1H6HpVhvdqxraJGWoSzE3YbbeRHrxTM//U8JJbSSu075JEFR650SSMhMjD8TmLRc7h2YT9HN25r47j8TV2uZ3OPXteTq83ejhM8KcybplA/VQDTUwsAzzgyQhxOTjoHKtFzfPEzrIJFjIN+oChlXzyfcBif8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IyCqWA== MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-529c7.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4799.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a88f71a7-049b-40bd-ea99-08d9a7a077e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2021 18:56:29.6489 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR04MB7354 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Steve Ward via Cygwin Reply-To: Steve Ward Content-Type: text/plain; charset="windows-1252" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 1AEIv7t7013283 Description of problem: While using vim 8.2 on cygwin 3.3 (x86_64) on Windows 10, when editing an existing file with vim and saving it, the Window’s file system archive bit is always left cleared (not modified state). This happens, whether the archive bit was set (is modified) or clear (not modified) initially. Window’s backup tools rely on this archive bit for making incremental backups. The following scenarios DO work: 1. Using vim to create a new file, leaves the new file’s archive bit set (is modified). 2. “cp” and redirect with append (“>>”), leave the target file’s archive bit set (is modified). 3. “emacs” (emacs-w32) (ver. 27.2) worked for both editing and creating! 4. Editing with vim sets the “last modified date” correctly for Linux and Windows. Tools used to confirm the problem: The cygwin tool, “cygcheck –c” listed “OK” as the status of every package. The archive bit settings were confirmed with Window’s “File Explorer” and cygwin’s “attrib”. The cygwin tool, “chattr,” could be used as a crude workaround, but I rather have vim do it. My search for solutions: I have perused 8 years of “The Cygwin Archives” for this issue, but could find nothing relevant. Google Web searches, and stackoverflow.com, vim.org and vi.stackexchange.com searches turned up nothing relevant. On my local machine, a search of /usr/share/vim/vim82/doc/*.txt turned up nothing relevant. My update history: 10/2013 Cygwin-1.7.25 Windows 8 vim-7.3.1314 No problem with archive bit. 09/2021 Cygwin-3.2.0 Windows 10 vim-8.2.0486 Problem with archive bit. 11/2021 Cygwin-3.3.2 Windows 10 vim-8.2.0486 Problem with archive bit. Can anyone shed some light on this issue? Thanks, Steve Sent from Mail for Windows -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple