Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
X-Injected-Via-Gmane: http://gmane.org/
To: zsh-workers@zsh.org
From: Thilo Six <zsh@xk2c.de>
Subject: Re: [PATCH] allopt() and question
Date: Fri, 6 May 2016 11:52:59 +0200
Lines: 40
Message-ID: <572C697B.9010607@xk2c.de>
References: <nggnqs$q8i$1@ger.gmane.org>
 <CAKc7PVCyLYSu72NEqgV+CwfALNz2y6C-wsEyXcCJh_oE6oEbhw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: p5b0e0b69.dip0.t-ipconnect.de
In-Reply-To: <CAKc7PVCyLYSu72NEqgV+CwfALNz2y6C-wsEyXcCJh_oE6oEbhw@mail.gmail.com>
X-Seq: zsh-workers 38409

Hello Sebastian,

Sebastian Gniazdowski schrieb/wrote:

>> % builtin set -o | command grep -E '(\<monitor\>|\<zle\>)'
>> monitor off
>> zle off
> 
> This will start separate process for the first thing in pipeline. The
> last thing is run in current shell. Which is cool for me, 

Now that you mention it i can remeber to have read about that. Back then a bash
user where this is not the default. But iirc they have nowadays a option for it.
Still to me this seem not to be the whole story.
For one it only occurs with only some specific shell options and second:

% foo="$(builtin set -o)"
% echo $foo | command grep -E '(\<monitor\>|\<zle\>)'
monitor               off
zle                   off
% allopt '(\<monitor\>|\<zle\>)'
monitor               on
zle                   on

Or am i missing s.th.?

> as I was
> able to write _function_ n-panelize that works in current shell even
> when is used as ls | n-panelize (the function list entries and allows
> user to search in them).

I use sentaku for that: https://github.com/rcmdnk/sentaku


kind regards,

     Thilo




