From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1523 invoked from network); 16 Oct 2023 18:22:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Oct 2023 18:22:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1697480557; b=rsdzqoNYoiNlG3fEYuOrFRm2fM7BthgeWgpB2AzmrxHEDBmLtluAYtUkrRxhNAheWksTcM7wsb PcD6UXQyaMBfYD2qy7NrYPc1Y2u5+J6JSzfvUvi1OqC3OifhgdYrWDzhajGrlixhlOc2iA/uY6 Byw77Z+jCPcK/SrUpgmzFJeC5zzKgIAxd3ArZxbdzdq8v3ML4V65yIkOR4FlYhS+7WJdyypWSj k42fMsRjpGnAnLyTe8zp3DJjFxoCIPF9MoTvKKnRTDSSKBx3Nzm/gDYCnRO5LhNQ89XKDbkE76 u8xMN5ZW2dNh8te26zqCyCiAUmItwlSnU6sb5bys1dpERQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1697480557; bh=VDyWpdQu/KwdBVqY9de654MrieyA9z49BvIRRc49Vgo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=hs4hFvbFog7HvT4Sk5denG/rbIG4qkktmsvraGq8EyNoDRoDgfPn2W8J010YunaborGo9ayrTK EvtK/hxR58tcnwnCdrLlFBQiHj/86LHX8I0D3svDhsEdKnibLALABp9hu8TIpWucpFuN02vIzq PaxoiuKUosVSiwU3xmhJoQ+KXCwr2wSbrPvDpbEEgvJiY5ytFLhxMlLqxmSHZMwlh8AEPpQwCM L+tnvrDcm5iV+GWrNLrpTqtZF1vOMIo+Bfuh9DtaGC9HC4NHUMLx8dJN9sVHFS33XHlBKbjB3x EEqIRerCZvspmMGb/mYg1dpFORZuzGe1XAjZCs0ME0fCdQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=wg66ojr22M8mqcZF1Xh9MVzgFNxrY6L/dEGuXnP3tY8=; b=ZdStbDpr0zTUtPpjl6UZSMKEjm dIclafAE5CRUiSkmejX5aewdarHaYprQrD63ZT13k1Df8bQoI06vyQUffdyHY9P0399u73fAdFu+O vhJ3O5aH7s9NEAMztlKUCPivO4sf3YKeDHgmjZVW8VodEhpNr+21wzsaQ8AW2xBOlKY0HZ2zBIfgv jtjmJYb3OgRIbWWmN+8EopHXihm/74ibg01EkdXw3gGXmXwmyEIIf5MbCSP2f6hwLPBhANBxmjTyY +sc8OuIOUAwpw1yG95twCzryTqcgGlf78I3qxre8Xn86JYD0aHFa9mbMIDZGKDcuzDXhyVTYPEaDb 4/Ibe9yA==; Received: by zero.zsh.org with local id 1qsSEe-0008fD-Br; Mon, 16 Oct 2023 18:22:36 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f51.google.com ([209.85.218.51]:55491) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qsSDs-0007yq-SM; Mon, 16 Oct 2023 18:21:51 +0000 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso786202266b.2 for ; Mon, 16 Oct 2023 11:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1697480508; x=1698085308; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wg66ojr22M8mqcZF1Xh9MVzgFNxrY6L/dEGuXnP3tY8=; b=Ly5IkwHEnNbTwVLQwwAkqa59Y2/kRNSIrYEaj7Kbww8sE3NIMZSAu5P7B3jU5jY+nT VoU4Okn766RhaLeFq7QruGU8BfGVYIIDgYIOArPcrje1gbJ54V0zXXwkB5aiVIayaR0F FujXnCxf1KPM1Z6z/p+L2fk+WWQmu91EqDi7TsllJDTHCxwZSflrj3uZjxeUKFAPMLtW qNBncgJiOpxiUzAMPn6IS8rB8+WaUr20hTEPhccNgYOKGtjRCF5NZmzfQTRJVEX77Fxl I/3zLznqe03DHbxNHGmURcviol2l+8AWNLQ9Ao8V8R/DG47gtRh+JxWjv1SWdkrdSPJJ tKdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697480508; x=1698085308; h=content-transfer-encoding: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=wg66ojr22M8mqcZF1Xh9MVzgFNxrY6L/dEGuXnP3tY8=; b=BkL0Shb/3fi2AIxFXJT8I00W+ObEuPRRsOPPRLI5NReK07XxFwKOEl3jinPX+gA8pP vxpMKSZ2aQKGjIpP163IOHzVZ/x6hpF1I/Zv1JJSA0n1yw9sxtQFptIbjPghbzCj1Ouq zd82hprb8ja9/v1+rrhHb8BgdgKZ4ruFDy4xbrjl9v0sbPtxFnIAlZyw+P6OnEwHWrAE cWXfjDC35izIFG+roFsBl3L+zBJwgDfS9hScxhOWtoespcQ02dOOoSpmospDYlqoHJtp PVqo5pYxFUKk9+Mr2nJ94rNes8xKcCPUCYK2sIRT8s7jJ51vQ/kO2b0ACVaPADvedN1P rFEw== X-Gm-Message-State: AOJu0YzWRiG3Rc4Xn4uaPOOl9cIDEwtDc+vbxfVIaDVjhiUFjNX45LqE dR/5QBu0WKf/kUnYh7RGGEHQfTIYskqeomMrJqy/oQ== X-Google-Smtp-Source: AGHT+IHDAVzwFRcvccQuoyOWtWPfMQRHwdHukgYa1QM6UgUmKVbPixBgCdPry3Osi8Uut3KFZVCTa1jT7Adg2VSpIzU= X-Received: by 2002:a17:906:6a19:b0:9a5:a0c6:9e8e with SMTP id qw25-20020a1709066a1900b009a5a0c69e8emr39296772ejc.31.1697480507980; Mon, 16 Oct 2023 11:21:47 -0700 (PDT) MIME-Version: 1.0 References: <875y3bvtos.fsf@example.com> <1312746524.945376.1697209990281@mail.virginmedia.com> <179314f9-333c-4baa-9dab-6fa397ab2f64@eastlink.ca> In-Reply-To: <179314f9-333c-4baa-9dab-6fa397ab2f64@eastlink.ca> From: Bart Schaefer Date: Mon, 16 Oct 2023 11:21:36 -0700 Message-ID: Subject: =?UTF-8?B?UmU6IGxzICoubXA0IOKGkiBscyA6IGludmFsaWQgb3B0aW9uIC0tICdNJw==?= To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29300 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Mon, Oct 16, 2023 at 6:35=E2=80=AFAM Ray Andrews wrote: > > Question: is this not the sort of issue that in principle cannot be solv= ed in an air-tight way? It is in the same category as filenames containing newlines and assorted globbing characters in that it mostly comes up in contexts where the user doesn't see the string before it's processed. However, it's a little more insidious because other "unusual" characters can be handled with appropriate quoting, and globbing is the most likely place for leading hyphens to crop up because globbing is more common in interactive use than things like "find | xargs". > If shells always expand arguments zealously I'm not sure that's the right characterization, but anyway ... > with the presumption that they are filenames Only true of globbing. > if someone has filenames that mimic de facto options when globbing is don= e, are they not a victim of their own liberty? They might be a "victim" of file sharing from a different operating system.