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.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,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 313e185d for ; Sat, 22 Feb 2020 01:03:08 +0000 (UTC) Received: (qmail 6699 invoked by alias); 22 Feb 2020 01:03:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24705 Received: (qmail 5910 invoked by uid 1010); 22 Feb 2020 01:03:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(209.85.222.53):SA:0(-2.0/5.0):. Processed in 0.750124 secs); 22 Feb 2020 01:03:02 -0000 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.53 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=phjXTAqfZEE9p5my6Bfew0Enm7uXtKUsIVXcrsl5aTk=; b=XW9xDqHrRVq5x7T6filqeyQzLaAgdAI3gTsiPuP6zZB9AKfS5NMK4hEZHBngVX3x7e vDVscRIA1kTA8xPCjNJnq1FwtXGHAXEQHHVZ8w22SlqJIaucIGUu1dn8dA+8A5Vnd+4E 7ktWYBz32Bq+wrXmMtSLwZenXDbeKWXULrshOhVfLjNB8ZlgtfYHFOk0hMyY86eS8+qA Sk9XxMI4yEhHU3QMLxGMRg02QdCbmm4jjovcBDLORRwvOIxExe1jAEeiTpds+W3hqtcw r0bB/n2T1c1ifvY+7qDJwO3k3+hI4uijoeZQ/dz5KY6hDMM7M/maNnJYfPBWys/HUBFZ eTug== X-Gm-Message-State: APjAAAXYQpL6k1ELl8C+xTWZcXuJ0zhqCU1n5TdyfwAe6qMVeeRlcDUe Yr3ILMm6Y9vKU8p7FobLWhoTfHG7oD21S3ubGHBgMg== X-Google-Smtp-Source: APXvYqw7W3NyaclbNxOBGvIxtvq3LDVeucprVOYVA5EPhQNFxEx4FeSMET2nijaMGuyCIGU3u4THfHOQVm7IDSDX87I= X-Received: by 2002:ab0:6505:: with SMTP id w5mr19134498uam.125.1582333348466; Fri, 21 Feb 2020 17:02:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Sat, 22 Feb 2020 02:01:51 +0100 Message-ID: Subject: Re: history expansion To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="00000000000026d4af059f1fb15f" --00000000000026d4af059f1fb15f Content-Type: text/plain; charset="UTF-8" indeed I wasn't aware, but it does not help me since I cannot do this: $a="!!" print -z $a because it still tries to immediately expand the !! thanks though Pier Paolo Grassi linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO Il giorno sab 22 feb 2020 alle ore 01:36 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Thu, Feb 20, 2020 at 5:20 AM Pier Paolo Grassi > wrote: > > > > 20-02-20 14:16:45 root@bakeca-vivobook Path: ~ > > : print -z '!!' > > 20-02-20 14:16:47 root@bakeca-vivobook Path: ~ > > : !! > > print -z '!!' > > > > !! is resolved to print -z '!!' > > I'm surprised that no one has pointed out that history does not expand > inside single quotes, but it does in double quotes. > > print -z "!!" > --00000000000026d4af059f1fb15f--