From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20440 invoked by alias); 21 Sep 2016 17:36:17 -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: X-Seq: 39402 Received: (qmail 12064 invoked from network); 21 Sep 2016 17:36:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-pa0-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.52):SA:0(0.0/5.0):. Processed in 0.860262 secs); 21 Sep 2016 17:36:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=D3iReH4wSp4HUYTHcCfyEYUza8abkiDMu3l8w4RuEs4=; b=uCOJYZpXN2Hqaz194qGbXGo1HHxAf7Ai7Ukre6LEluP5z68iX6wJhTw85lObN4/mbN nfSeogM1oNMMTKYWoYuLeaoZYX/NsejdeQz1kJQKhTUq5UJeyFO1+XaVrQ2YBioQKInq iKbwiYi6DeAyV4I1flnPT5qg0XK9KD/IMAAJVy/DIu3kWiu4UKAAJucYT7DAgM+gGTGb Fo8Q3rL4AeSW+nR0gayDUQlwtuqdUrABpGMefxtPw6lBVQFBR/wqokI5xxsU6Z9EW3kJ wo+iQTf490zHNj5Dm1JzMEynC6xC7P6+MfB2xm39O92IutcZILIy84InUV5RLa27R7Sm Dzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=D3iReH4wSp4HUYTHcCfyEYUza8abkiDMu3l8w4RuEs4=; b=R4nwl7uljy582nWVWHgOK83qLjdrvqpZAMeLbKW3PYzzREYSaNuAYwoJoQMNBEg3cJ jJ6Cb4vMdX5qZwy3+FnM/yTP9dcziWEqFf2de7/RT197K20l/jy1bKrpUq8WLc7iI5jR xQZz7II1rNV9oZqYkPy8Oqva9rX+02wokUh87/wdeynUPkc0jiGVmAsaTROMbWZ024Xo gCgkIgz25kHTRvyMbkoNNt9Fjn0+ICWH0W0smYj7M+J6FJgRy4URZ4R/PtMW0t9/tfBC BhqGk35DopEltnYOJwAS13rUXUBS4nbbnGmQ3UcofQJruaGD3K2/WRo1TNvj3YIPPmBN Zdeg== X-Gm-Message-State: AE9vXwM2eB+eSBYiFMqWuhqtTA7z3tebgjtbvfQz5Rjgr128aVZ8UFMUu6dRXtWDAIRB7A== X-Received: by 10.66.157.166 with SMTP id wn6mr35722382pab.42.1474479368246; Wed, 21 Sep 2016 10:36:08 -0700 (PDT) From: Bart Schaefer Message-Id: <160921103610.ZM3018@torch.brasslantern.com> Date: Wed, 21 Sep 2016 10:36:10 -0700 In-Reply-To: Comments: In reply to Xavier Martinez Serrano "zsh Issue - "!~ " character is not pasted into shell, insted I get "~/.ssh/config"" (Sep 21, 4:27pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Xavier Martinez Serrano , zsh-workers@zsh.org Subject: Re: zsh Issue - "!~ " character is not pasted into shell, insted I get "~/.ssh/config" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 21, 4:27pm, Xavier Martinez Serrano wrote: } } I'm using zsh 4.3.17 (x86_64-unknown-linux-gnu)" version } and when I was developing some small awk codes, I tried to paste } them to the terminal, but when I used the operator "!~ " I realised } that, when pasting, zsh translated it to "~/.ssh/config". Quite annoying "!" is the history reference character, so !~ means to search for a history event beginning with a tilde and substitute that event into the command at that position. Apparently somewhere in your command history you typed ~/.ssh/config at the beginning of a line, and now !~ is finding that as the history event to substitute. You can "setopt NO_BANG_HIST" to disable this, or you can use single quotes '!~' to prevent the expansion (double quotes permit it). It's additinally possible that your /etc/z* files or some other init file have attached the magic-space widget to the space character. This causes !-history references to IMMEDIATELY expand when followed by a space, even a space originating from copy-paste (at your version number; behavior of paste has changed in very recent zsh).