delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/03/03/13:06:03

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 523I63Pf2945188
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 523I63Pf2945188
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=v77pDMo6
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 557ED3858D38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1741025161;
bh=rodEhXf5vBDc7j6UBhf2P5Iw+f/9QEDWvE89mK1TX20=;
h=Date:To:cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=v77pDMo6VMRiLhUqHoWNO4jtFkrY9pP0lSvwblTqAEFEEcwHNdBzob5Oq1CO0/PFd
9RUi8TZCrz3yq8qzlrRZ/JVEEeyVmPNU1TX2Z/fhLrsLricHCpEl1v1S11t463vxdb
wmcvPyazW/9ZiiU2iw9ioo2LCpSLpWYLBejJFPII=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9140C3858D21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9140C3858D21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741025134; cv=none;
b=uQz7dQwYuKIAgblCpLF/6WDKgUuWGeP/Z5TthLsrjTukkPazBEnLuvwPfIcA1m0AYZbOgCKvHakDDM/HkZfcdiwJVxXW/Ji8fY+SkHhBZZMY1eMIJTE5crly7jJNm7/FOtE0QTIyMmeZAFSzbyDDTdkVOq53IzjLLO1tY67wr6w=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1741025134; c=relaxed/simple;
bh=5eMzfGrI+X/I26mwSCycIj4vLUa+gJIckvCk7nkDqLI=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=jd4bt4kE4TqACIDosu790jb+jXCzF+6BMPOuS5vruOLwlvZOzc5vQTTTa8wINBW8+sLS4LUePl9gKeia1f9LtTgcH80UvfNIzvSsjtcWVlaPufSSQ7kWZ8DuyduXr+fo6d92p4vcD1MsZKxUprJ3Cn+Et4QFEd4WIb7EAjpRjDo=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9140C3858D21
Date: Mon, 3 Mar 2025 10:05:33 -0800 (PST)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: David Dyck <david DOT dyck AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cleanup of in-use files moved to recycle bin
In-Reply-To: <CAJtSMgsyOOr9vJW-hDE+c=ff+DrTzN30GqPniJWRW=_ny=s1pw@mail.gmail.com>
Message-ID: <47569d34-eecf-4df3-a132-918eb5759992@jdrake.com>
References: <da7896a3-bf3c-8580-03bf-2ac485e898c4 AT jdrake DOT com>
<2a781007-8b06-db4d-7bcc-59f45fbae8b8 AT jdrake DOT com>
<881a1bd4-112c-9c9e-0dfa-babad34ddd55 AT jdrake DOT com>
<CAJtSMgsyOOr9vJW-hDE+c=ff+DrTzN30GqPniJWRW=_ny=s1pw AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 523I63Pf2945188

On Mon, 3 Mar 2025, David Dyck wrote:

> Is the format of /proc/mounts changing from being space delimited to being
> null delimited?

No.  Fields are still delimited by space, and records are still delimited
by newlines.  What has changed is that 'special' characters (space, tab,
newline, hash, backslash) are now escaped within records as octal \NNN.

In the below snippet, I only convert to delimited by \0 *after*
unescaping, when spaces or newlines may be present in the entries.

> On Sun, Mar 2, 2025 at 10:57 PM Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
> wrote:
>
> >   # as of cygwin 3.6, volume roots are parsable from /proc/mounts
> >   # (noumount is the option that indicates a cygdrive mount)
> >   readarray -t -d $'\0' roots < <(
> >     cut -d' ' -f2,4 /proc/mounts | grep '\<noumount\>[^ ]*$' |
> >     cut -d' ' -f1 | xargs -d'\n' printf '%b\0')

> where can I read more about this change?

https://cygwin.com/doc/preview/cygwin-ug-net/ov-new.html#ov-new3.6
https://www.cygwin.com/cgit/newlib-cygwin/commit/?id=0d113da2350a4bdae5227c5cc88585d5b20d6065

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019