From owner-freebsd-questions@freebsd.org Fri Oct 16 20:21:09 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 58C8443EDD0 for ; Fri, 16 Oct 2020 20:21:09 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCcx04qlNz47Vq for ; Fri, 16 Oct 2020 20:21:08 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: by mail-qt1-x82c.google.com with SMTP id j62so2399570qtd.0 for ; Fri, 16 Oct 2020 13:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :organization:mime-version:content-transfer-encoding; bh=az2ok5qb3b2V1BtqWIZvK8lSKmlfR6ekkSyC1wezCG0=; b=QGEB7LDaZSrcX8WV1iNPPGlXfEusG2ghcIUxdsO6LhnOQmE5H98pgJ8pUqLeK7G03F /6G7VT9iMAHI14o5XwFmZytWbfH0MNKfAHN7K/sleKdrJnDr/kRMyrzydAD8PgNV85rL vWzb2STutJAFL9kRUKaQFXXNNV3LImySnesmk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:organization:mime-version :content-transfer-encoding; bh=az2ok5qb3b2V1BtqWIZvK8lSKmlfR6ekkSyC1wezCG0=; b=hGU0N+9ciR3YGxhEct4yMRL2j4tZfClE94rjZED9WuN1j4c7YHnSE7xkCMUowr0QsI Cu8ztAPxYJ1YL+Akl99osmV4lMGptU9THxZ6WTsSfxtZ+aa4VKwaLD3c/TejX0PuUYdD m9wJzoEheb4mCaK/JUzpePgFOAuq5/DyqFpNYEPqIuP7A16MWLIuGT3pjz22EPiDk7Ye iny6CGIC/JlMKeeVL0y3PY/AkbPScWSrbLDwBVYoH90LwFCJF2Ydy3u2zAItwYbzPhZl u4HWZM+ngD3KPA4TN9p6c4skMW+TDOka36m5rpgeUgXFEsMZ2HwFgbiJ4voY6W1mofd5 w4mQ== X-Gm-Message-State: AOAM533Jq+pTl7JifO4E2Up/JlFKdjnKhwTmMnu1Z6+rLb1Gj16QrKSK GVPsXxj8b2vFAkOCezQIAJcpHOtgbITG5g== X-Google-Smtp-Source: ABdhPJwtEuSW4u9BjrYX8mfltP8OC56OvQ9vvl8cKbJtUxZCAzfCYbaUh/I7BkLnpSqJQKLq/WU6+g== X-Received: by 2002:a37:7805:: with SMTP id t5mr5621048qkc.157.1602879344531; Fri, 16 Oct 2020 13:15:44 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-174-109-231-236.nc.res.rr.com. [174.109.231.236]) by smtp.gmail.com with ESMTPSA id f187sm1310603qke.60.2020.10.16.13.15.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 13:15:43 -0700 (PDT) Received: from localhost (hp-envy.seibercom.net [192.168.1.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jerry@seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 4CCcpk3h19z21rK for ; Fri, 16 Oct 2020 16:15:42 -0400 (EDT) Date: Fri, 16 Oct 2020 16:15:40 -0400 From: Jerry To: freebsd-questions@freebsd.org Subject: Re: sh scripting question Message-ID: <20201016161540.00001abd@seibercom.net> In-Reply-To: <69FD7F52-B1D9-4540-9379-CD3122BEDBB6@jschneider.net> References: <69FD7F52-B1D9-4540-9379-CD3122BEDBB6@jschneider.net> Reply-To: freebsd-questions@freebsd.org Organization: seibercom.net X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4CCcx04qlNz47Vq X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=seibercom.net header.s=google header.b=QGEB7LDa; dmarc=none; spf=pass (mx1.freebsd.org: domain of jerry@seibercom.net designates 2607:f8b0:4864:20::82c as permitted sender) smtp.mailfrom=jerry@seibercom.net X-Spamd-Result: default: False [2.18 / 15.00]; HAS_REPLYTO(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[seibercom.net:+]; NEURAL_HAM_SHORT(-0.39)[-0.387]; RECEIVED_SPAMHAUS_PBL(0.00)[174.109.231.236:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; REPLYTO_EQ_TO_ADDR(5.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.947]; R_DKIM_ALLOW(-0.20)[seibercom.net:s=google]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.984]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[seibercom.net]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82c:from]; RCVD_TLS_ALL(0.00)[]; GREYLIST(0.00)[pass,body]; 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 20:21:09 -0000 On Fri, 16 Oct 2020 19:07:41 +0100, Jon Schneider commented: >There’s 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 “con”. > >https://www.youtube.com/watch?v=YcAdgcAvTCs&t=221s > >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. I had no problem creating a notebook named "con". I cannot seem to delete it though. I will have to look into that. -- Jerry