From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c45ac9aa for ; Fri, 16 Aug 2019 01:12:13 +0000 (UTC) Received: (qmail 21191 invoked by alias); 15 Aug 2019 15:57:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44673 Received: (qmail 23504 invoked by uid 1010); 15 Aug 2019 15:57:05 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25538. spamassassin: 3.4.2. Clear:RC:0(66.111.4.29):SA:0(-2.6/5.0):. Processed in 0.766597 secs); 15 Aug 2019 15:57:05 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm1; bh=XecbsZT46C+PtVpdd8cF6bcEyU bha2bbcOxjES8Ox1U=; b=eN13agqRy6SQ9FCg87EMKgIYbX6CXa68D9AvafiCnM QLDt73bdL0CNsdKouaVL2kdeEJJglUN6zdd2m4JoxLPtVMIKtMXM8d8d8gde83Yo 9Lr2wTXZICXPlpHEsc3RaY/BN7cUoLoOKR7EFSS/tgZXgkU00NX/OHFLXWhxI5Ff rdKm31MB19JVhK6XYvA7HaKVJdw7L2X9dSYVMd1EybM3xnE+MpEbxRLtNRVyOzeo YGEsbJurB+9qP6f/RD+bgYHIC2PKRwAX9GzDYh51BuaRM8kb4bbpwBqnwso6QLKY baV7NZQVIGj+hBVUO4lpERBWPcEsiheHz/FT1gluuvyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=XecbsZT46C+PtVpdd8cF6bcEyUbha2bbcOxjES8Ox 1U=; b=iypRQB+Qnof2denJ/3GIidTRSM7D444KEDC8gF/w+KXFOHD54tyE/NhQ0 QNbvXVE4G+b5aLWDFtqmnt8+gbHC3oBCtvddtDUJjri0ZVvK3oCD8exdxXqt9Il/ soY0D0SU5RFBG1A904DrzDtQ38C6uBZZYHLss8DNcE/6CHQuSG7hovLWDzRpIkh9 TSJ7EvM/FgpPcfGFUT6Jm3ssQ8Uq8878xxh0r68zaxtjV9scCAkUIOJb3x6rGPPn zii1U7HGgoy59/99kwxd1c6g4mcXqzNvCMw7dGDHDrOMKcAe/Y7KWMLDkQ4quePI ips95inysfZ4P9/jIDKetRtdKoEXQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudefuddgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnihgvlhcuufhhrghhrghffdcuoegurdhssegu rghnihgvlhdrshhhrghhrghfrdhnrghmvgeqnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgenucevlhhushhtvghrufhiiigv pedt X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-869-g2d94aad-fmstable-20190814v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <6EA30061-5610-4CCA-93FB-0A160E2002A3@icloud.com> <20190814095449.s7mgevyo5tdhfyby@chaz.gmail.com> Date: Thu, 15 Aug 2019 15:56:29 +0000 From: "Daniel Shahaf" To: zsh-workers@zsh.org Subject: Re: [Feature Request] Adding option to support triple quotes Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Aryn Starr wrote on Thu, 15 Aug 2019 14:29 +00:00: > That EOF solution is good if there is a lot of text, but for short=20 > snippets, it=E2=80=99s too many characters to type. Completely against= the=20 > shell=E2=80=99s spirit of arcane brevity. :)) > I also thought of a (kind of) new application for the triple quotes. I= =20 > think it=E2=80=99ll enable a lot more functions like this: > cc() python -c "from math import *; print($*);" > Since we=E2=80=99ll be able to easily write the target language=E2=80=99= s code in our=20 > shell, with minimal typing. I don't really understand your example, but I did want to point out this= : [[[ #!/usr/bin/env zsh : '''.'; /sbin/shutdown -h now; : '.''' ]]] With TRIPLE_QUOTES, it's harmless. If TRIPLE_QUOTES is unset or doesn't= exist (older version of zsh), it executes an external command. (Just imagine it said =C2=ABrm -rf /=C2=BB there.)