From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23672 invoked from network); 9 Jul 2005 20:27:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Jul 2005 20:27:17 -0000 Received: (qmail 93391 invoked from network); 9 Jul 2005 20:27:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Jul 2005 20:27:10 -0000 Received: (qmail 2177 invoked by alias); 9 Jul 2005 20:27:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9080 Received: (qmail 2167 invoked from network); 9 Jul 2005 20:27:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Jul 2005 20:27:04 -0000 Received: (qmail 92441 invoked from network); 9 Jul 2005 20:27:04 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 9 Jul 2005 20:26:57 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DrLuS-0008VX-CJ for zsh-users@sunsite.dk; Sat, 09 Jul 2005 22:26:48 +0200 Received: from 212.17.39.109 ([212.17.39.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jul 2005 22:26:48 +0200 Received: from thorsten by 212.17.39.109 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jul 2005 22:26:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Asking ZSH: How are you ? Date: Sat, 9 Jul 2005 21:26:26 +0100 Message-ID: References: <20050709.165213.74740823.Meino.Cramer@gmx.de> <20050709151736.GA382@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.17.39.109 User-Agent: 40tude_Dialog/2.0.15.1 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-1.3 required=6.0 tests=BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.2 X-Spam-Hits: -1.3 * DervishD (2005-07-09 16:17 +0100) > * Meino Christian Cramer dixit: >> When listing options (*** by `setopt', `unsetopt', `set -o' or >> `set +o'***), those turned on by default appear in the list >> prefixed with `no'. Hence (unless KSH_OPTION_PRINT is set), >> `setopt' shows all options whose settings are changed from the >> default. >> >> but giving "setopt +o" or "setopt -o" >> always gives me (even for setopt +o!): >> >> setopt: string expected after -o > > Of course it does, it's correct ;) You're mixing 'set +o/-o' with > 'setopt' and 'unsetopt'. If you want to list all options use > 'setopt', without arguments, or 'set -o'. If you want to show ALL > options, no matter if they have their default value or not, use this > little snippet (for example): > > for option in ${(ko)options}; print ${(r:21:}option $options[$option] > > This will give you the list of all option names followed by its > value. I find this easier to understand that the default of prefixing > with 'no' and the like. Isn't that a bit "too much"? "autoload -U allopt; allopt" or "set -o" shows you all options and there state.