From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16212 invoked by alias); 18 Jan 2012 21:08:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16735 Received: (qmail 5602 invoked from network); 18 Jan 2012 21:08:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HQHH8jY/HI1M/MX0HG+R6rQz+s16uaI3X0I1+g45LKg=; b=SmQFc2BBDRGNufW6QGStpZBmNHCsPShSwI92P8OW7mnHph0lUkmm71YFLdwcTjegLo 62pUrV+BTSMmqRFOMHThfRerCwQiM5rPbrN8e9NmAVqk+RTSRMfJtotuSaDio2t4W+rr l2QrxcvVzoEB6jIzFQx9uYjuTDAAfXtShvdw8= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 18 Jan 2012 22:08:43 +0100 Message-ID: Subject: Re: Can we have an additional output option for setopt? From: Mikael Magnusson To: Larry Schrof Cc: "zsh-users@zsh.org" Content-Type: text/plain; charset=UTF-8 On 18 January 2012 21:20, Larry Schrof wrote: > I can appreciate the logic that goes into displaying the 'no' prefix in the output of setopt. (As it pertains to defaults and minimizing the amount of output.) > > However, I find myself often wanting to see every option listed by raw name, along with it's current state. And I don't care about the defaults; I'd like to see the list without the 'no' prefixes polluting the output. > > I originally set KSH_OPTION_PRINT, and got this as the first few lines of output: > > noaliases off > allexport off > noalwayslastprompt off > alwaystoend on > ... > > This is CLOSE to what I want, but what I really would like to see instead is this: > > aliases on > allexport off > alwayslastprompt on > alwaystoend on > ... > > Could we consider adding in this functionality? I'll leave it up to the devs to decide how this functionality gets turned on and off, but part of me is thinking it should maybe be an option, perhaps called 'OPTION_PRINT_VERBOSE' or something like that... printf '%s\t%s\n' ${(kv)options -- Mikael Magnusson