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,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12025 invoked from network); 29 Jan 2021 17:01:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Jan 2021 17:01:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611939708; b=X/W7KA0L3gGFQQq4++mmf1Xz21lkA9f+nD+H0spzlzwCn+1NntIQI38MpIsO32oQ1OcwxL48Na 0R/PK4SvXk8uoYw0ejkDCjiMLEaDWuAmcZxF7XjX8FeYgYn3HZdNmZjnmBtiMsP/ZqtrUW8Omi 37cr5j75oNcBWws5Y7U89DwTAsk0d/nVQhiNYRHcgDoN3vZGitlSDwi7cMwurRG1LAH9OwzxJY +yzA2wYHrSXJxlfH6ZfwuOXzrywG77CHJ3F5VCyl3xpuojMdG5rsm36WHmm31pcDXZ2ezRMjrY mYErHeWUgrQQCZAdjKq/6nmqx4Fs1JPDvQnXZe8gNSxcCw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1611939708; bh=qjIBwzh9tmGgUDI8qIHcZvLKLTMfD7ypk5Iyg4Uwlkk=; 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=YEVgZISt8jKf+c/1a7+UVvDhzZQ2X8ImBm6OChHou/krQjZTD4hLs3oCiKJZK8l0Lv5azbIrxS GEWAYJQZpZ+uy3NcZxszjxA8m/xyLn840HUz+X6LIkDC2iS39ogKzspbeAIjdhaensuhuP1BvL 6NpkK3/Akqa0IU09EYepdowqoxo8D5EO16qzSgYG74+NtaryIIwDARNn7UjQC0g7ROYtcxc/17 s6C7FTlGHIyj0HtAUWTnLPvxrHmaEndKi7sJ9d7thXqXwpMTmtuUW8lQPt4NZ7NHgjabbTEIx3 uSiHlJFk29W71rwMvbA2bnJ2gFnZ9OqPpqbeWIh2+276MQ==; 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=YkVbInNwBsjmaR4PL4pcBxS8p+cxkkW0hzFc+fuCMuI=; b=fud5ucNWtjNeACeuOEe6fOPSld xwEqjHXb2AdYLnlUCXCIKx8iX4B2zeGJy2an8+7URarLKbOwCRtyGoi8tkJgYXGmByueAPER/FlPH 2Y/TJ7t/CwH6PNXOr8iBqn3C7hewH+ToGJroz+LXFuv3QFuBkwlpiDQ5UyFKRuVoRYA3e5rcTD7a0 39NFpjuRwka7pwZQ8kkN8oLxu9TTgkiP4FLs/Se/IwHKrQB/cTFL6sxS3/4PXkolEAkx1iuMP5Hpp PGLRTOkpqoMWgQ86JwCwaYcXueNFIBWjkrjzvRdzrhGm8itUalO28jlClNsdMnKd0Gb1UsZnEa2Ok dFr2eQFw==; Received: from authenticated user by zero.zsh.org with local id 1l5X9U-0005aU-HT; Fri, 29 Jan 2021 17:01:44 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:53354) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1l5X8v-0005D4-1D; Fri, 29 Jan 2021 17:01:10 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QNP00DHCGDQG590@mta04.eastlink.ca> for zsh-users@zsh.org; Fri, 29 Jan 2021 13:01:07 -0400 (AST) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id 5X8tl2ch5sAqK5X8tlTSpX; Fri, 29 Jan 2021 13:01:07 -0400 X-Authority-Analysis: v=2.4 cv=W6f96Tak c=1 sm=1 tr=0 ts=60143f53 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=rg6AoQh7S8fH3bpx4MwA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvgdeliecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: (N) defaults to whole directory listing To: zsh-users@zsh.org References: From: Ray Andrews Message-id: <7ea3f3f8-6aa9-bbab-40d7-2944b88e1709@eastlink.ca> Date: Fri, 29 Jan 2021 09:01:07 -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: 26436 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-29 7:33 a.m., Roman Perepelitsa wrote: > > `ls` without arguments lists files in the current directory. This is > mandated by POSIX and what everyone expects. Of course. > > `no_such_file(N)` expands to nothing if there is no file named > `no_such_file` in the current directory. This is in line with the zsh > documentation and what everyone expects. That's about what I I expected to hear.  zsh can't be expected to feed 'ls' with something that duplicates a non-existent file, it can only remove the non-existent file thus leaving no argument thus ls must be 'ls *'.  I had thought there might be some hidden mechanism by which ls might be informed that the given argument fails but I can quite understand that no such thing exists -- zsh just removes the non-existent argument and that's all she can do and ls is on it's own.  Thanks Roman.