From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob21.topicbox.com (tb-ob21.topicbox.com [173.228.157.67]) by inbox.vuxu.org (Postfix) with ESMTP id 2DD1F29F62 for ; Sat, 10 Aug 2024 23:49:11 +0200 (CEST) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob21.topicbox.com (Postfix) with ESMTP id EBE5B32579 for ; Sat, 10 Aug 2024 17:49:10 -0400 (EDT) (envelope-from bounce.mM57ab58e7079320469579f89b.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 9CE591F74E68; Sat, 10 Aug 2024 17:49:10 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1723326550; bh=yXM9jx50wHiPHLwS mJNmGPG50KLzXkCrsQM+ay27TVc=; b=mi7gGku2JgdApq0xSpJtT6+dDbkpH91Y P3NOvyo0hgMlvxx9vXNlDYqe8kPyQz1YUP4vWeHUQnQHgfRFwE9HCXwnDTToryYE tzZFv4ZGHt4I7EeILj930DzEXY7I8HqxHoL7gIWcOgGmipuHlfzrsk0yjzua9b6G YnLndu5LYFI= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1723326550; b=GA+jFcjYbTpomkMF+E7hOKLjLrWEk76mwEOC3VbZ+WKMKRlcKd 3aV5vhJzvVu6I7vl97FCjZBbvqT97SHSm14c8ltWcwXaQFSokFeIxh5eNP+u6O8R lIuLgscEISBXCa7hv9veQlNy5b1Vmau5nvhhTen3qIUWUwATb2ZAFAfDo= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (Insufficient authentication, DKIM required); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1723326550; x=1723412950; bh=yXM9jx50wHiPHLwSmJNmGPG50KLzXkCr sQM+ay27TVc=; b=RPa407K8RPp9UXW0jDI2h5kzgmK7G0ECfjNRfYtynio9KTah QOEZiihkIqZuPdw8E9aujkAhCuQS/PY4pO9f7GydAM/5o9ifdOTYQclA1hBiDgSr M0Hf06NpMg2fP+6kzqAGvLiRIQ+bpFJbrC3dNuwmsV9rl4sH6jCB6gg/2tw= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 626202255475 for <9fans@9fans.net>; Sat, 10 Aug 2024 17:48:57 -0400 (EDT) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 023AC6264E9; Sat, 10 Aug 2024 17:48:57 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1723326537; b=p2c3SEG2rC9QwItMBmumFnfCj0x+ezv+MUhpbR+ptJlR5IORll G04vrUvci9d3PVtHMWZffCqZiw2qCTfFsuNztmCA6uf1qsyOSbB51xio0p939kt1 xDQ20QUC+MQRANLrZXlWecIEl2/aD/ZGEX6fXe26IGwBp5Wxn64PLQpET+4eRnlo s9FPvaV8g5COXFnlzlg0U+Lqav+DISRU1vQsu9BjaJtmLlSP0wHjZwsGdIZa08W6 AyVxDvcWBx7WATbtEO7W9WqrBKqd8jnX/4+NdQ757wW4rRio1jAR6g1Uyeeiye3j ZngWMBsVzftGlV4ETVHUJX8k4AUZMo5TH6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= arcseal; t=1723326537; bh=JkImwq6fEBa2wlUmWSFmR07mB2UjeqI+5gqLP8 iZRAs=; b=KO4HVEigQwLak9Lh0FACmr6yd8C92NvA/4srZwjBWQJk4tK6R7guA8 WMkGzWCx//TPMi1kLruG33Jo8cNMmC736c83ZScjFgeDH2spNZj4wSRctbCX21F9 w90uCUypKHeYf3E/259l7S9qMUz7xaf2/E+0eadxolp1oUE4kH+7VZpy0hDWqv8u tCLECaiiB9XgREVoRyYnJQRiSzXrH5BUR2c+AzKJR7iVhNEgpRZKfYp1yJK56TTc hyl7EGYY3o+e3K+l5oZKVaUi2rhtJRymQF7sYxXSAoGXjT+T8i3FUdecl+Gpy/Fj S37hMqMyGkLmbIEDSny7AF6LDucIciPw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (Insufficient authentication, DKIM required); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeeftddrleejgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffkjg hfufggtgfgsehtjeertddttdejnecuhfhrohhmpehsihhrjhhofhhrihcuoehsihhrjhho fhhrihdomhhlqdelfhgrnhhssehsihhrjhhofhhrihdruggvqeenucggtffrrghtthgvrh hnpeefhfdtteduheffveeuleefgeejvdegfeegtddtheeluedutdehudfhfeffueelteen ucfkphephedrgeehrddutdehrdduvdejpdefuddrudeirddvheegrdduleenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeehrdeghedruddthedruddvjedp hhgvlhhopehsihhrjhhofhhrihdruggvpdhmrghilhhfrhhomhepoehsihhrjhhofhhrih domhhlqdelfhgrnhhssehsihhrjhhofhhrihdruggvqedpnhgspghrtghpthhtohepuddp rhgtphhtthhopeeolehfrghnsheslehfrghnshdrnhgvtheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sirjofri.de: 5.45.105.127 is authorized to use 'sirjofri+ml-9fans@sirjofri.de' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="sirjofri+ml-9fans@sirjofri.de"; helo=sirjofri.de; client-ip=5.45.105.127 Received: from sirjofri.de (sirjofri.de [5.45.105.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sat, 10 Aug 2024 17:48:56 -0400 (EDT) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from dummy.faircode.eu ([31.16.254.19]) by sirjofri.de; Sat Aug 10 23:48:40 +0200 2024 Date: Sat, 10 Aug 2024 23:48:39 +0200 (GMT+02:00) From: sirjofri To: 9fans <9fans@9fans.net> Message-ID: In-Reply-To: <17233255580.EbFBd.400013@composer.9fans.topicbox.com> References: <17233228160.1d47.67930@composer.9fans.topicbox.com> <17233255580.EbFBd.400013@composer.9fans.topicbox.com> Subject: Re: [9fans] Re: How do you deal with newlines (line feed, LF, \n) in filenames? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 5b8d1f20-5762-11ef-abd6-52ec058c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMTExNDlmMWY5NDk1OTNmNS1NNTdhYjU4ZTcwNzkzMjA0Njk1Nzlm?= =?UTF-8?B?ODliPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M57ab58e7079320469579f89b:1:3-Sc0kMleTw6X6yxsy6c28zjt5vxRGXxqpa88JWN0YM 10.08.2024 23:32:48 kalterdev@gmail.com: > Thank you for your reply. I was referring to having newlines specifically= in filenames. Sometimes it's not one's own fault that filenames have them. Sure, that can happen. I just wonder who would do that on any system. > I wasn't really speaking about the way to represent a newline in rc, alth= ough thanks for details on that problem. My problem is to parse command out= put that has a newline in a filename. > > On my system, find(1) just prints the newline as is. So if the output loo= ks like this: > > a > b > > It is actually possible that it means one "a\n" file, not file "a" and fi= le "b". I think in this case it would be either two files ("a" and "b") or one file= ("a\nb") because otherwise it would look like this: a b > Some commands, including ls(1) from plan9port, support quoting such files= . But then the problem is how to parse them. Yeah, that's more complicated then. I don't think we have standard tools to= deal with that situation out of the box yet. That is, if you're lucky enough to have an ls, walk or find that can quote = them, you can parse them using different tools (awk, sed, or build them you= rself in C). It would probably easier to circumvent this by getting file by= file, for example using some dirstat counterpart or maybe even a for loop = (but I think for loops also work with command output). Maybe someone else can help you find a more pleasing solution, sorry. sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T11149f1f949593f5-M57ab5= 8e7079320469579f89b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription