Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can we have an additional output option for setopt?
- X-seq: zsh-users 16735
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Larry Schrof <larrys@xxxxxx>
- Subject: Re: Can we have an additional output option for setopt?
- Date: Wed, 18 Jan 2012 22:08:43 +0100
- Cc: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- 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=
- In-reply-to: <CB3C697C.3530%larrys@fb.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CB3C697C.3530%larrys@fb.com>
On 18 January 2012 21:20, Larry Schrof <larrys@xxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author