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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9813 invoked from network); 30 Jan 2021 15:01:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2021 15:01:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612018870; b=aYu2K+2ANIyv/HC62AGJ87t4FBfCxC+VGSZMvzgUKrg3oSGr5YsZwL5w/RwTk3lYkzdkLKGR/7 q2ceE+yhX6tYAAxKX824Lgx7NfqpR+qJCO5gI/0ZUnYyiL/k56GUJAt1fU/qEcTYuV9VIThm9x LvML4bAXXsvoRDxa08nddP9bEDCtby46zeWFCEOH9DLVam4+AMXFSd0hAK44C48H4KOf4nh4gn mhWEKkVczrv2X88FFM1SyeOnqa5GLW7fDYJ0K7TEjN88ONL1OK4irRYfd4cer4ZKBY5dXmwUbe SU6eKRV2PNEfzxQEKiOCQXc3nMk2QqiFefl9LJ7iDJD+BA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f54.google.com) smtp.remote-ip=209.85.210.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612018870; bh=oLt2JadJD3cKzg9c/uGvTOdYjZ6cchJKxTINIOYL1kc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:References:To:Cc:In-Reply-To:Date:Subject:MIME-Version: Content-Type:Message-ID:From:DKIM-Signature:DKIM-Signature; b=0PPK38vSPQdFp9U23tJgxj3dIE5hzyAWIn6DW4+//zwAYHWASbAwBvnOijMkCAmRAIGYsj+hyk ltxfF70pW/Tw9HWOArb4CJj9feTC/241vZmYfiPuonD/UZXd5zMUt8fuisS3yqy9C8na7QDUXV mwpao/rlIriK2q6a5kNGy8dWW2stmyLHa+D2NM1dTui1F1BLAMuGvBOqEUpywbAyjyRv9etSGu ayI51M/6D/CMHCGo/uqCpbQcxGD75oKRPHuisaqr1AJTwntxGeIKUW+gPdYvPyYJvNiGGBNhQd ZyNHFvMc7aN8S6gSmFBHjmwTQRXKVx4aIXKQimxkllIUJQ==; 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:References:To:Cc:In-Reply-To:Date: Subject:Mime-Version:Content-Type:Message-Id:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Xzo0635aIpvpen/sPzVpkuY8/d14+chYqnNTe5NwYNk=; b=MHMrXlUpTmNbmwkvy70JLkdQ9I RuZFqQZRkwUS2/O8uT8fPRkJ8WjQ22ypBzvELDNcEJK3K2NbnKEQG2xPbS58gzAFrTaeJCMhshkz+ wZLgT4CO64e1dyciDjbBhgePW9rMa3suxEkQAyYuHYKJnZEl+8VKX5pLiEpQWGvAKO8fRUfPxVSZn 4SGQJAlZtJLJzPd01NwTd4FdTjBreG6s/NViZswBStq/T2vxq/6gzxwyGMgYROtAG417S6Vyp4x/n FkaUOWFMNjsuY4R/Xw7TDpPBbdChLcyaciTq7m+CD+nbbrUnvFIWwsHlFVExYmNvmkmrE5fUBY3hy wNS5PUbg==; Received: from authenticated user by zero.zsh.org with local id 1l5rkI-000FzK-5p; Sat, 30 Jan 2021 15:01:06 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f54.google.com) smtp.remote-ip=209.85.210.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ot1-f54.google.com ([209.85.210.54]:45947) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l5rji-000FcB-81; Sat, 30 Jan 2021 15:00:31 +0000 Received: by mail-ot1-f54.google.com with SMTP id n42so11620128ota.12 for ; Sat, 30 Jan 2021 07:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Xzo0635aIpvpen/sPzVpkuY8/d14+chYqnNTe5NwYNk=; b=oRlI8cWiwblFYfscaKmDtOiJXGQpzXjfba+auJudjECBlfOVRJvOtVEoFYZzvUr4CY 4qobTsN+soKnts1SwWzM4yq3gwwrsM2kA+a6tfDXpnLQGd+aEhEvX7hVEMzMuOpvhlmP pC67ILmY77/bjN1yMVegOmUeKxqMgohyH6TlSOUarv5fQn40Fx0XUUhAB3dM418gb/lQ Yf8HGeLQB49DtC/ckw87qo+6Pyvj/gDwxFkErlYC9/QW2ezzHIogK12/hgMywe6oYfgR TGe+sqjKiatp9fDozGNl/PHkew9fpgQ9AfnM1BT02G79yHfHUWFFrBRzgDvZZnYlrs0g 0Z4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Xzo0635aIpvpen/sPzVpkuY8/d14+chYqnNTe5NwYNk=; b=YBNGZLd2MzjWKXxOmoBPoOHQ58Gs+abEcOXo8hEeqArM3MY7/u9aUzaI4aP9BIE2Hm 4h3io/88R5ytk6JXvKp4QUG+2YuKjq5px56U6aMnj8MkCltkIPF8dZTqYQx8TYyja6yF W0FAj7/c7v3tUCtnGX19WNHAEtOZQgQa7nZ4+PcrACrUZaLo93JZPZdWPaRXn8cD8oAP nwUh9qelklLoDGTHBirnh7fQu2l6aPgAweRKMwkau+EOD6JEIqDTx7klk/vtHnnKI523 BL+aBScsIZeQZk8mfQ7ps5Lrsh5o2g16F2QVttf9Gwv6TcIIs79OFq66nXghwok/T3q8 Z83Q== X-Gm-Message-State: AOAM532X4D5W72cKWuVy52vyqwS8cwNgU62cX2oBmHfJPO0+mP0GfzDb Q0qLEjiJQQ+UaOMW9xobTnM= X-Google-Smtp-Source: ABdhPJz3uMSuRVP3uFdCRJo+Ufj1NiJuyKIfSgNA2hwbR/LGGB7Y5Jk99vi9GzUrdK6WsaM5dDFpqQ== X-Received: by 2002:a9d:bd1:: with SMTP id 75mr6156149oth.21.1612018828701; Sat, 30 Jan 2021 07:00:28 -0800 (PST) Received: from 2603-8081-7440-0043-cdf0-4848-ff90-9c67.res6.spectrum.com (2603-8081-7440-0043-cdf0-4848-ff90-9c67.res6.spectrum.com. [2603:8081:7440:43:cdf0:4848:ff90:9c67]) by smtp.gmail.com with ESMTPSA id 33sm2746784ota.69.2021.01.30.07.00.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jan 2021 07:00:24 -0800 (PST) From: Beverly Pope Message-Id: <0421713D-25C5-477A-90AD-C0BD2B40EED2@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_A6FA88CA-490A-4BC3-8EF8-883B9388E8AC" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: (N) defaults to whole directory listing Date: Sat, 30 Jan 2021 09:00:23 -0600 In-Reply-To: Cc: Bart Schaefer , Ray Andrews , Zsh Users To: Roman Perepelitsa References: X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 26444 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: --Apple-Mail=_A6FA88CA-490A-4BC3-8EF8-883B9388E8AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jan 30, 2021, at 4:50 AM, Roman Perepelitsa = wrote: >=20 > On Fri, Jan 29, 2021 at 8:04 PM Bart Schaefer = > wrote: >>=20 >> On Fri, Jan 29, 2021 at 7:33 AM Roman Perepelitsa >> > = wrote: >>>=20 >>> print -rC1 -- no_such_file(N) >>>=20 >>> This will print `no_such_file` if such file exists and will do = nothing >>> otherwise. >>=20 >> Not precisely nothing ... it will print a newline. >=20 > If the file doesn't exist, the command is equivalent to this: >=20 > print -rC1 -- >=20 > This command doesn't print anything. % print -rC1 -- no_such_file(N) zsh 5.8 (Ubuntu): prints nothing zsh 5.7.1 (Mac): prints return= --Apple-Mail=_A6FA88CA-490A-4BC3-8EF8-883B9388E8AC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = Jan 30, 2021, at 4:50 AM, Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:

On Fri, Jan 29, 2021 at 8:04 PM = Bart Schaefer <schaefer@brasslantern.com> wrote:

On Fri, Jan 29, 2021 = at 7:33 AM Roman Perepelitsa
<roman.perepelitsa@gmail.com> wrote:

 print= -rC1 -- no_such_file(N)

This will print = `no_such_file` if such file exists and will do nothing
otherwise.

Not = precisely nothing ... it will print a newline.

If the file doesn't exist, the command is equivalent to = this:

 print = -rC1 --

This command = doesn't print anything.
% print -rC1 -- no_such_file(N)

zsh 5.8 (Ubuntu): prints nothing
zsh 5.7.1 (Mac): prints return
= --Apple-Mail=_A6FA88CA-490A-4BC3-8EF8-883B9388E8AC--