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-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id C41E52027A for ; Sat, 10 Aug 2024 23:05:45 +0200 (CEST) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 55E7B1DE22 for ; Sat, 10 Aug 2024 17:05:44 -0400 (EDT) (envelope-from bounce.mM4a923f98af111ae0821055d2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 50F9F1F72B47; Sat, 10 Aug 2024 17:05:44 -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=1723323944; bh=I4YSAjPGu2CNjiUW mDqryRs7Pv2LAjW2GBD4+au51RU=; b=os7GjqEmduV06mKexPXQpwVBuncipkes jEFsVMFqPP4ZgrQqH1njfuJUEOqxEtjeUg4o1mFNb1q/vZkmRR0UxwwwAm+nNKdJ vJ38CMrglAwzEiDsSt2ArmMoQxxKiSv9Nma6+fG4MpfVNuxoTC+YkK/CMuLTtNMT 6aixg4gokZc= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1723323944; b=o3Nz+kJkJ1yNe3fXswD4nIPAu6WJs17ekUCWEeghjMU/m/2BIn narjLqfs8kdX2JKzs5fQnVu3PcTafBwo5XxqUXdHWhmV+9QLylCvU2zoSo4cJbR0 USDjhBfWdS2C0TEX0FqGnr2eleUoqb4gGLoD2s3KPqbckRMzBsH/bcv3s= 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-mx1.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=1723323944; x=1723410344; bh=I4YSAjPGu2CNjiUWmDqryRs7Pv2LAjW2 GBD4+au51RU=; b=LW2wb/aDOdVFB4P+ZzVRoSrmusDKsXiqkzyPiblOV5K06hII Ur3miO430Q1X+0jjmYKOEybxIveClS+1jOCcaTxksPpPCM5XJpCaIqdpTiK902du CkgV6tPMvnRV2QPSUSnUvCjU4BeGdlc9q5ubejbfG8H2l5Qo2Fdf2EeTE68= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 3CA861F72617 for <9fans@9fans.net>; Sat, 10 Aug 2024 17:05:34 -0400 (EDT) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 6135E0D70B4; Sat, 10 Aug 2024 17:05:34 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1723323934; b=apQyj7QeXyPGhy7qaJsXD7gmOVAbw69iKW880RN/Mely1JF6wj w8JS5CRavY1Fw3VtDnZ+EQU4o9YA1V2zreIaRdUoTizQfwXwPPw99f3lQWNbvKYk rCNiuUx3bZWdOZVoXziVPsR6KshjTXyO52Ft1d39odRdybigbVc+Cs3LHUrM+KOq DNN1SIBaJ7knE0tCMISpI5g4SJ2Y3ZVW4iahYkXz65oCVgeEM1nU0v81M5TYCgkf 1/Y9vfUlQJ1x2NtOxPZk+2gwATr3BbKvHUnadS3CeE4c3vP/esvynaCWl2b7tdTb gqfJrKTujZAckPchZIHkTsWYSICa0s1izZTA== 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=1723323934; bh=cC716+au0zxD+PNtEYWnLMxrY3k2DoaL1Z4ijb Ap3v0=; b=B7Gsl+KkPPRHKdHEZmjGzKJ6l7XrH/WoNTWNSIEjAWgtDAZu3/ieav NL2tE2gu7ohhMAxUeAqPd8XCs1T7lnh/jCB5eMwOyZxfjl3RgH2qC3r846r3WAc9 Yea+4CShu8aNszTT5EzLf98cJUzNy/SNeUubuuZobXgVdjU8y8b73Q6MF2Id8VLl t4ZHx5s0E5DwmKB7EPLhr9ivy3RNaUZoJ0VTT9uMZ20A1/CibHxaX8Yc7dY2Fsea woWpNzG4Ic4CsF8uc0auo2nvw0Y8ceK3zz1rZZrqgAC2wiZfburEjM7Genmmem3k FB86thJ02XNI8l0XCtsjEecx+i8ItMSA== ARC-Authentication-Results: i=1; tb-mx1.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: gggruggvucftvghtrhhoucdtuddrgeeftddrleeigdduheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvkf gjfhfugggtgfesthejredttddtjeenucfhrhhomhepshhirhhjohhfrhhiuceoshhirhhj ohhfrhhiodhmlhdqlehfrghnshesshhirhhjohhfrhhirdguvgeqnecuggftrfgrthhtvg hrnhepfefhtdetudehffevueelfeegjedvgeefgedttdehleeuuddtheduhfefffeuleet necukfhppeehrdeghedruddthedruddvjedpfedurdduiedrvdehgedrudelnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthephedrgeehrddutdehrdduvdej pdhhvghlohepshhirhhjohhfrhhirdguvgdpmhgrihhlfhhrohhmpeeoshhirhhjohhfrh hiodhmlhdqlehfrghnshesshhirhhjohhfrhhirdguvgeqpdhnsggprhgtphhtthhopedu pdhrtghpthhtohepoeelfhgrnhhsseelfhgrnhhsrdhnvghtqe 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-mx1.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-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sat, 10 Aug 2024 17:05:32 -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:05:25 +0200 2024 Date: Sat, 10 Aug 2024 23:05:24 +0200 (GMT+02:00) From: sirjofri To: 9fans <9fans@9fans.net> Message-ID: <7269fa6d-af8d-47a4-869a-b7187a33ce37@sirjofri.de> In-Reply-To: <17233228160.1d47.67930@composer.9fans.topicbox.com> References: <17233228160.1d47.67930@composer.9fans.topicbox.com> Subject: Re: [9fans] 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: <7269fa6d-af8d-47a4-869a-b7187a33ce37@sirjofri.de> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 4bae88c4-575c-11ef-84ff-9944b63f627d Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMTExNDlmMWY5NDk1OTNmNS1NNGE5MjNmOThhZjExMWFlMDgyMTA1?= =?UTF-8?B?NWQyPg==?= 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:M4a923f98af111ae0821055d2:1:6trGijmMV86pUXNBSoctOQQySU9KavBXNrhvInEwrRw Hi, having newlines in filenames is questionable. However, needing a newline is= quite common. In rc, you don't encode the newline, you just use it: echo here is my ' ' newline. It's quite common to define it as a variable for easier use, for example: nl=3D' ' echo $nl files=3D`$nl{ls} echo $files(1) (The example is not that useful, because the standard delimiters contain a = newline character.) Instead of find, I usually use walk, but I don't really know the syntax. In= these rare situations I often find myself using walk | grep instead of loo= king up the flags. Good luck finding a solution that works for you. I think there was a doscussion some time ago to add quotes to ls output for= situations like these. sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T11149f1f949593f5-M4a923= f98af111ae0821055d2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription