Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Comments in ZLE
- X-seq: zsh-users 13848
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Comments in ZLE
- Date: Sat, 14 Feb 2009 11:05:50 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=uH/NNIWsax2butYkcj84VX3owfc/Ww4Y0Jsa/zClV88=; b=YW5MxHYCqSZ5cgPprLTO5cNOxTF1GC4vanMgGJd8COWpxxaGjyIjKhu18zC7yGBSjx X0pP4gfS+3Jx6QjYzsS/w4yc2FRr5Xdttui/6cJbGV5hsr+5sd4EGEummqhdpNBRBO1c X/YT+GS+WGbVF8e9WM7APgnFkE/VKvovJCY4o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gl7JbbIxdkpsNdldJi0lZFAGFstvmRs27UZS/oSUep0BLmRvHbmGNTTubGw6mIc/qy YrA6wYwoJuWQlOLmU5kTmC/o6m37cet6CfEWrT3Di0qW/s/A5bQj8whQMT+oXtz2HMC6 N7WxgrrJjG7NhyVwfnSqRW8A8hX5TRvIFnmNs=
- In-reply-to: <20090214100227.GF4167@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1234561091.502.ezmlm@xxxxxxxxxx> <20090213215839.GB8108@kyag> <20090213220137.GE4167@xxxxxxxxxxxxxxx> <20090214092857.GA6292@zoidberg> <20090214100227.GF4167@xxxxxxxxxxxxxxx>
2009/2/14 Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>:
> kba <unixprog@xxxxxxxxxxxxxx>:
>> On Fri, Feb 13, 2009 at 11:01:37PM +0100, Frank Terbeck wrote:
>> > Frank Jeschke <jes@xxxxxxxxx>:
> [...]
>> > > sss@kyag:[~]$ #vim /tmp/foo
>> > > zsh: command not found: #vim
> [...]
>> >
>> > % man zshoptions | less -p INTERACTIVE_COM
>>
>> I shared Frank's confusion until I recently stumbled over the
>> INTERACTIVE_COM option by accident. Is there a specific reason why this
>
> It's actually INTERACTIVE_COMMENTS. I was too lazy to type it out.
> Less's -p option just wants a pattern to search for, so that was
> enough. :-)
>
>> is off by default? To avoid clashes with commands that start with '#'?
>
> Well, I'd guess it's been done to let people use the hash char without
> needing to quote it. After all, who really uses comments in
> interactive mode? (yeah, I know some people do. But they can just use
> said option.)
>
>> Can '#' be used to do history expansion like '!' or something like this?
>
> Not that I would know, why?
# can be used for lots of stuff, (foo/)# for repeating patterns,
${#foo}, ${foo#pattern}, $(( ##a )) etc etc. Note that I only know
what the first one does :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author