Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Lines ending with two backslashes are incorrectly read from history file
- X-seq: zsh-workers 30432
- From: Hauke Petersen <hkptrsn@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Lines ending with two backslashes are incorrectly read from history file
- Date: Sat, 21 Apr 2012 18:39:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=3e5+GnVCDcaajfz69plaiaE71NRQc9n9uMAqQ/JnNGQ=; b=rxuJtY39SuQoi58riDbsHE5qtO3b1aGdSwt9N3qz8q8kytF2Srsufw3UoyHXqv/rwu tVZ+UGcKe6urwHGYqqbUwtWag29B/1HfRijr2T6Hw7NbYVe3zcpxs4T1HULpiJ/10Pzj yEFnBM029W5tS12+fxxh6CeuLbi+xpqQyPkmS5vy+89PTafq2B9DU+RxRU13EmTgfJKB X9zHt37dfm2zKR6KlZYOPKhX4d8XY9VKK+ea5maGe9RsAQxhiiyxElkPvlBOSyy3yEZ1 /russ9X9uk6sgGqpAxch+quOr77CB+GWwgjOSJTwHgAF0yIlt+4+HpfeVWThccO1cnTX 0NOQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi everyone,
I noticed a problem reading history files that contain lines ending in
two consecutive backslashes (\\).
% zsh -f
% SAVEHIST=10
% bindkey -p \\
% fc -W history
% fc -IR history
[up-arrow]
% bindkey -p \
fc -W history
The backslash preceding the \n seems to be interpreted as line
continuation here even though it's escaped itself?
% fc -l
1 SAVEHIST=10
2 bindkey -p \\
3 fc -W history
4 fc -IR history
5 bindkey -p \\nfc -W history
I've tested this with: -
4.3.11 on Linux 3.0.0-16-server #29-Ubuntu
4.3.12 and 4.3.17 on CYGWIN_NT-6.1-WOW64 1.7.13(0.260/5/3)
4.3.15 on NetBSD 4.0.1_PATCH
Hope I haven't missed a prior report, I searched the archives but
haven't found anything about this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author