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.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31300 invoked from network); 10 Jan 2021 15:04:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Jan 2021 15:04:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1610291055; b=yLKlHlagxSNu6NQ4hgp7XVDl522WxsDY8vw94EZWFXW9CcAKCf778AeFmBTpNbDFii04HvXM71 nJEjqPBBIJ/0J1bixpFLRRZhFQpM0JSFbG8BBkNi7dyc7PK5DGUDz6fDB3Q5FgKmNA/0PqCpTL 3dWhavQTBfzYkSuwLPIuW+K1jUv4NPiHOraLVRds+O4GqRlxk9duVKD6BFpO4aUle3DmPC1sFP 1Ijsmk9HrEmh9pugAzNNUimP5LHT8TdJPHBPsLzXYSXEPX85tE1Dt2S2os7cKM43wgn9pI4gSS BKP7L/6gBM1Hbu+sXHW25JqHlcK2XMwCfKOLPClit8f6hA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1610291055; bh=9j+BgE60nlqD7UOUYO5v+G3rsr+BC1lpXm82yeUqKPs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=Hywc+Wi+UjGEXBYsYU5e9juOhMBu2fmXIb2uCPZYSdAnZQNdcHO3kY6VYVRZq4WxdRTIDOQwTp wfTl6cEEam9p4Sm+IvlYYetkzpKWxfUU51U2LCr75DEs7OE8wVJpgfXOdz/YT80CZWn4ucUJiS kmgTlcAEkGgozYMl/Ejj6CXFtiiYERKOzgx85SkJuQBX+PUMLcXPBtxX/tvjXQED5BlJmwf43n Eks6oVJEi5+CGF7Y3j3gz03BS5vOcWbP9j/QIBp8lrP+g/ZW3M0gl0UffpaR+mn5Rlh9Ux/cGA 4cMSnqM2KQH+oUGhH3D70ZaTqmKlitjzMPVX2I8eU6ZQag==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=4WsF+pBbBm0iOYFexdH3DY65Nb77hk7BpzgPgtm55YU=; b=aiN0xTqIzse5A1hEssrG/fc4Ku 8gMXt5Du9foRHc/PtSJFZERtUloLeXsingvYalW02JRpYD6SAJe6URusUsL0XCliF5Ekd/NFoqKB9 7tLNnIiVkfODX6eQq8FOovzmEbaHk82SyC5pj0VU9lxYZi+a/qwRrT/hbdHvQChzegaVIrcL7YVIL t7dxrGn2nXD868yGewvfzeJMpXSILn/KaYr/ikvq6P9X2BON/5UcxH4kg+EQp9oXfRJXC+5cRu++a IW1QKJnMjzfud/Bc6Cc9a6y1qm72dRNADF+Q+9JcVF1DvENyVwTu0XRyUGij4rlInTRAq7IWPYZQQ LwvOeaQg==; Received: from authenticated user by zero.zsh.org with local id 1kycGM-000Nwq-LU; Sun, 10 Jan 2021 15:04:14 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:32940) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kycFm-000NaL-3f; Sun, 10 Jan 2021 15:03:38 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QMQ001A23DHHZ90@mta01.eastlink.ca> for zsh-users@zsh.org; Sun, 10 Jan 2021 11:03:35 -0400 (AST) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id ycFjkLPy8BfFDycFjkBub9; Sun, 10 Jan 2021 11:03:35 -0400 X-Authority-Analysis: v=2.4 cv=Ncoja0P4 c=1 sm=1 tr=0 ts=5ffb1747 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=nf5RnrZVQPdmY_TMIjEA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegledgjeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: question mark in filename. To: zsh-users@zsh.org References: From: Ray Andrews Message-id: Date: Sun, 10 Jan 2021 07:03:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26368 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: Archived-At: On 2021-01-09 11:02 p.m., Roman Perepelitsa wrote: > > My guess is that the name of this file contains something interesting > in place of question marks (ascii 63). Try this: > > ls s,7* | cat -v > print -r -- s,7* | od -t x1 -An -v > > Roman. > Right! I create a similar file: $ touch s,8,big?improvements?in?code $ ls s,8* s,8,big?improvements?in?code $ print -r -- s,7* | od -t x1 -An -v  73 2c 37 2c 62 69 67 0a 69 6d 70 72 6f 76 65 6d  65 6e 74 73 0a 69 6e 0a 63 6f 64 65 0a $ print -r -- s,8* | od -t x1 -An -v  73 2c 38 2c 62 69 67 3f 69 6d 70 72 6f 76 65 6d  65 6e 74 73 3f 69 6e 3f 63 6f 64 65 0a pasting the two outputs and trimming to the first question mark:  73 2c 37 2c 62 69 67 0a  << A bleeding linefeed! 73 2c 38 2c 62 69 67 3f  << A real question mark. ... which is exactly what tried to show when printing my '$output', it broke on the 'question marks' that are really newlines anyway.  So a better question is why ls does this: $ ls -1 s,[7,8]* s,7,big?improvements?in?code s,8,big?improvements?in?code Anyway the former was auto generated by a utility I have and it was clearly in a buggy state when it made that file.  And now we know that 'ls' replaces linefeeds with question marks, thanks Richard Stallman.  Maybe any non-visible character?  But then again 'eval' uses question marks the first time and spaces the second so it's not just an issue with 'ls'. Nice call Roman.