Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG?] - history word expansion for commands with interactive comments
- X-seq: zsh-workers 42244
- From: JB M <jbm.lists@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [BUG?] - history word expansion for commands with interactive comments
- Date: Mon, 8 Jan 2018 10:31:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lXNGyhyjJbX9465ZRVF650gmfJbiDTmxymdbbNhv9ok=; b=c8/Mw2wMUvHGLA6O/2yilQsXC8zh0BWsio+tE53Y2J5MR+8I5y75ycNGCIX5CHf+8a Ealv4uhZriI16M66liRJN8TYFGVof8+IVnLdgUSOBMcC+6wVmjPK6fyKZ6eTE2C0eVEj lwI3yeFpX1HJvJhu8tvuQDhtTxbZ6frYdcQnjFEfGKFzRPJ/I4Ps978SErHZ/YeZY/8C +TmSIrN6tJ3So85MJYE+VDsWshjXcmgPwtVsEtFj0ewKLk0RPGSE94T6ZIq+pw2T3bE9 veXsMffAADwbybEzvTjz3UWeCs4YYvSjU8ok15B6q4ZjYEJenuSh5XLZ7kVAQuJsPXlt nsbQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
on a somewhat recent version of ZSH, it seems that the comment character is
considered part of the arguments of commands ending with a comment:
jbm gandia:~[1310]% zsh -f
gandia% echo $ZSH_VERSION
5.3.1
gandia% setopt interactive_comments
gandia% echo $histchars[3]
#
gandia% echo test # My comment sentence.
test
gandia% echo !:$
echo #
gandia% echo 'another test' ### Several commenting characters
another test
gandia% echo !:$
echo #
gandia% echo yet another test # My comment here
yet another test
gandia% echo !:*
echo yet another test #
yet another test
I would find it more helpful to have the commenting character not
considered part of the arguments, like bash does.
-- jbm
Messages sorted by:
Reverse Date,
Date,
Thread,
Author