DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 523Fpuxh2890450 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 523Fpuxh2890450 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=mSgQAvii X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AA373858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1741017114; bh=6dZarVUTk9OfRJN7YKEURGzhuKM5ZZeLhyrdw7EYerE=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=mSgQAviio7z2DA9w8DuDzPp95dCiePut4EwWiaaNoGvirAN96RcV+OUI6vzjpRCRA wkf0Lzva9Qv3UzVxqS15ggzSfIaDp+THM7V+FRi5Pk749OV2FlstlUBqbVZU7zv1s2 SIQnkyPDNebHc/GBYbpb98TEXRp5V5VtgNfsmooE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67B133858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67B133858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741017052; cv=none; b=QxsYmI0lHplOqsOuu4Si5QFNTwm9K8Vg4fxS1H7ZhqHt7MXonByb1kJwp1Jb9XBm54gSB7tkB7u18IX3EPak2eOr7BShnVE1Sy/7APCi+W1WXAJiIe03HBrky6mF1NPc5tMXhrV8Ct80FPvS6NvegF0bkIoibVHhoOQUtwbpFuc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741017052; c=relaxed/simple; bh=4+gkbGF+R+fF1LqPKdBVOBaM/ThegmPt1kH33XpUnVE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=OR7yKDLlcK85nhBE7yFJLTbW0lyZAJRa+PWw2exYe8qDa72JiuswOnmVuH9o1BDII8YAabU9D/35x4Fiopz7+XiGz+qB3a9fkPwMUXZhwD0FwUQhzd8ConjmIvt8xcaes8mrlzgOsZ7lCOEYORvqM0cy0wpdhGmHf9SCSmmhN38= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67B133858D21 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741017051; x=1741621851; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Csd9eJkkG7Y2OZmS0vnuYXOE4epRlVN809R1aClLB8o=; b=sd0aW/bpAOjJ1ix4Hmgc011aCZx1ZxXkOej4LyG6kBWCxbS8bVXnyRviL2uNxGa6Ih Eiu7+4UtR7XaQYhm44XzFScRVoHYjxwqIIlHdqU2u+6QOVR2pbCXDVeXoLczi21aMSws Uw1WAGFAupbvFuCVKxQ5grUQ+EWSNWYfC3m8aOjXQPNlCkRx4DCISS/+aMUnMDhVJRgB Pd4W2h+wjJJpuuPewr1lewbaq8W34HXSJqMubioFkCbVrIxDLNNwZvQgCT95w79VUgVD tPqx/84R1wlXdTA9L4Auh8wu8WN/ezYy6nBXVf3LOypoxGpas3LMQLD4mnPk9WP+jKGc 1xhA== X-Gm-Message-State: AOJu0YxRNNOouN+oNb4fDr/RoSh9m622vFcBGC/67M3BF9n8RQnWzl5j bJbqQns6QNNgSZZNsOYeJP2IE/Aya9UgfDmtFNXQbCcREL7kmHuUVvOSDQraVWgPOJIYghWgWK5 N5jeCr3HUzLZ5pHjaExCS18OjbL+VHwej X-Gm-Gg: ASbGncuUqAtF+5q6sp4IMDn7uWjE5yYfsexxprv3Pz5qqF5aNS9duYTGFdR0RtUZfQW HK2VFKVkdqxZvODdZcfZoITY4pHyS4WDS3OACmLEOTuNNO+1ptVC/sED8hPc+w0eQ6YeRJ3FMKy 4APVTTB8m8pw0yXGsKaLb6hd1K2qc= X-Google-Smtp-Source: AGHT+IEIaPjM9Jh28/bLCrwysQ3ymTbjFVPDVpXZVYKjxKGHZccGhlKxGYrAv9ZPuHZSF/n4KXBf7VTDRP7Mw8zKnPw= X-Received: by 2002:a17:903:1252:b0:223:4782:78b0 with SMTP id d9443c01a7336-22369213c8cmr203578415ad.41.1741017051205; Mon, 03 Mar 2025 07:50:51 -0800 (PST) MIME-Version: 1.0 References: <2a781007-8b06-db4d-7bcc-59f45fbae8b8 AT jdrake DOT com> <881a1bd4-112c-9c9e-0dfa-babad34ddd55 AT jdrake DOT com> In-Reply-To: Date: Mon, 3 Mar 2025 07:50:39 -0800 X-Gm-Features: AQ5f1JorrJyzFLD450pU-a_b3VIscXi0jWSRVkoAUsUMoYePieeU078SX6Cfvik Message-ID: Subject: Re: cleanup of in-use files moved to recycle bin To: Jeremy Drake Cc: cygwin AT cygwin DOT com 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: David Dyck via Cygwin Reply-To: David Dyck Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 523Fpuxh2890450 My earlier question was triggered by noticing several uses of the null delimiter when reading from /proc/*/mounts and/or /proc/mounts I see now that there is cygwin-3.6.0-dev branch in https://cygwin.com/git/newlib-cygwin.git and I am catching up on the log entries I am aware of other places where we use the null character to delimit fields - for example /proc/*/cmdline and /proc/*/environ - are there others? How will this change affect other user scripts that read /proc/mounts ? On Mon, Mar 3, 2025 at 6:22 AM David Dyck wrote: > Is the format of /proc/mounts changing from being space delimited to being > null delimited? > where can I read more about this change? > > On Sun, Mar 2, 2025 at 10:57 PM Jeremy Drake via Cygwin > wrote: > >> >> ... >> >> declare -a trash >> readarray -t -d $'\0' trash < <( >> LC_CTYPE=C LC_COLLATE=C \ >> find "${roots[@]}" -maxdepth 1 -iname '$Recycle.Bin' -print0 | >> LC_CTYPE=C LC_COLLATE=C \ >> find -files0-from - -maxdepth 2 \( -name $'.\uDC6D\uDC73\uDC79\uDC73*' >> -o \ >> -name $'.\uF76D\uF773\uF779\uF773*' >> -o \ >> -name '.msys*' -o \ >> -name $'.\uDC63\uDC79\uDC67*' -o \ >> -name $'.\uF763\uF779\uF767*' -o \ >> -name '.cyg*' \) -print0) >> if (( ${#trash[@]} )); then >> ls -la "${trash[@]}" >> read -r -p "Remove? (y/N) " >> >> if [[ "${REPLY^^}" == "Y" ]]; then >> rm -f "${trash[@]}" >> fi >> fi >> >> -- 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