From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17670 invoked by alias); 5 Apr 2010 19:39: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: X-Seq: 14978 Received: (qmail 9848 invoked from network); 5 Apr 2010 19:39:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ruderich.org designates 78.46.69.5 as permitted sender) Date: Mon, 5 Apr 2010 21:36:05 +0200 From: Simon Ruderich To: zsh-users@zsh.org Subject: Re: Append cancelled commands to history Message-ID: <20100405193605.GA21377@ruderich.org> References: <20080919162045.GA22435@ruderich.org> <20090706151644.6BF508027106@bifrost.dotsrc.org> <20090706154309.GA15663@fermat.math.technion.ac.il> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=_zucker.schokokeks.org-26069-1270496030-0001-2" Content-Disposition: inline In-Reply-To: <20090706154309.GA15663@fermat.math.technion.ac.il> User-Agent: Mutt/1.5.20 (2010-03-30) --=_zucker.schokokeks.org-26069-1270496030-0001-2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 06, 2009 at 06:43:09PM +0300, Nadav Har'El wrote: > On Mon, Jul 06, 2009, Vadim Zeitlin wrote: >> zle && print -s -- $BUFFER > > I wonder, isn't "-r" also wise to add, otherwise if you have > escape sequences like "\n", "\c", etc., in your command line, > they will be modified by the print command? I totally overlooked that mail. Yes, -r is definitely a good idea, it fixed some trouble I had with whitespace. Thanks, Simon --=20 + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 --=_zucker.schokokeks.org-26069-1270496030-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAEBCAAGBQJLujulAAoJEJL+/bfkTDL5EBMP/0/p8busIvQhUniTIMsWBMi3 CJCKyysr6Ct2KPSYVMnfwFNC/C8/XBX8BOMYmCLZEQZKGZPBT7wx2xz2shYXM2ZP ZnP7lQPzdK2Q4tGN9QkCSTCYhp47Q9YBDYlRBLY1u6xEeVTqXKuiWrF8IH2U70bF XvoU+3+gDnxEaHbACu/D12v5mOmwjl5L6Zi/zcFL29OGDhniOl2yNbbrHxp+7GTD gQrFSAbXA8DsKgTtk9SBx4JmkVWHLh+u83kXtIk+ACdFV7mKkBYeFVtEojQ0Dbb1 8/ehtknxe1j8qjtxIaM74h3RddMRP0tSYshERtpvr11InJiVeKMq2EmTfitc5zNE lrtO3yCxU+gnfG2idtZ8bLtP2Ndzp8JLX/x6yjwYKsxvOzGgBiZj9IIJ0MdmHdAW zEXQaia4RK47rEdCnAyLIOLtia3ZtPKmgIRvajfYHEWsp7hm7jTOrkXbwCrulUFM MXz8dzZ7Ns3ZWJQd9H1dwsJuHnl2/g49BfZj/RlQu5J9TUzaGryGscGN22mf4dOR R1CSVxCthXDwGxW69o4Fiv79QHcC8L4rCGt1K6Q/JouPBYFm1w0wc4TmGABKTjQV l1/NT1x2dMzsxmGC0o0/RT7xRKtMMb5hqGCOfuz9nTs5blywIHBvEmT4kdYdv1tL VqE7B+jU7Ex8VwMpWUCz =OT/G -----END PGP SIGNATURE----- --=_zucker.schokokeks.org-26069-1270496030-0001-2--