From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10669 invoked from network); 12 Nov 2002 10:39:47 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Nov 2002 10:39:47 -0000 Received: (qmail 22447 invoked by alias); 12 Nov 2002 10:39:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17928 Received: (qmail 22437 invoked from network); 12 Nov 2002 10:39:39 -0000 Date: Tue, 12 Nov 2002 12:39:31 +0200 From: "Zvi Har'El" To: Zsh hackers list Cc: "Nadav Har'El" Subject: edit-command-line Message-ID: <20021112103931.GB16493@fermat.math.technion.ac.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Hebrew-Date: 7 Kislev 5763 X-PGP-Public-Key: http://www.math.technion.ac.il/~rl/pubkey.html Hi, The function edit-command-line, which implements the ksh-like editing of the command line using $EDITOR when v is hit, has a bug, which makes backslashes escapes evaluated. You can try this by entering the command echo 'a\nb' and hitting escape and v. You enter your $EDITOR, and when you leave it the command is changed to echo 'a b' which is of course wrong. The following patch, which adds a -R (raw) option to a print, solves the problem: --- /usr/local/share/zsh/4.0.6/functions/edit-command-line.orig 2002-08-14 22:54:06.000000000 +0300 +++ /usr/local/share/zsh/4.0.6/functions/edit-command-line 2002-11-12 12:27:58.000000000 +0200 @@ -11,7 +11,7 @@ print -R - "$PREBUFFER$BUFFER" >$tmpfile exec