From owner-freebsd-questions@freebsd.org Fri Oct 16 18:07:42 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AE3343C728 for ; Fri, 16 Oct 2020 18:07:42 +0000 (UTC) (envelope-from freebsd@jschneider.net) Received: from slave.jschneider.net (slave.jschneider.net [46.235.226.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCYz14Hkyz41tZ for ; Fri, 16 Oct 2020 18:07:41 +0000 (UTC) (envelope-from freebsd@jschneider.net) X-Disposition: Mostly harlmess; Fri, 16 Oct 2020 19:07:38 +0100 From: Jon Schneider Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: sh scripting question Message-Id: <69FD7F52-B1D9-4540-9379-CD3122BEDBB6@jschneider.net> Date: Fri, 16 Oct 2020 19:07:41 +0100 Cc: Ralf Mardorf , freebsd-questions@freebsd.org To: Polytropon X-Mailer: Apple Mail (2.3445.9.7) X-Rspamd-Queue-Id: 4CCYz14Hkyz41tZ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@jschneider.net designates 46.235.226.89 as permitted sender) smtp.mailfrom=freebsd@jschneider.net X-Spamd-Result: default: False [-1.73 / 15.00]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:46.235.226.89]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[jschneider.net]; NEURAL_HAM_LONG(-0.99)[-0.987]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.948]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:44684, ipnet:46.235.224.0/21, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2020 18:07:42 -0000 There=E2=80=99s a YouTube publisher called enderman who shows how how = inconsistently these special CP/M and DOS file names are handled in = Windows. He does things like create install Windows itself into con. I = have found you can total OneNote for Windows users by creating a = notebook called for example =E2=80=9Ccon=E2=80=9D. https://www.youtube.com/watch?v=3DYcAdgcAvTCs&t=3D221s Having watched these I am convinced Microsoft should have simply allowed = them in Windows. Currently there is a horrible mess. As for the original problem the only (and safe and portable way among = all OSs that use C language interfaces) is to assume that the null = character is the only safe separator in file lists. Because of the = underlying C language interfaces. Jon > such as "COM1:". :-