Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Asking ZSH: How are you ?
- X-seq: zsh-users 9076
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Christian Taylor <cht@xxxxxxxxx>
- Subject: Re: Asking ZSH: How are you ?
- Date: Sat, 9 Jul 2005 19:35:13 +0200
- Cc: zsh-users <zsh-users@xxxxxxxxxx>
- In-reply-to: <200507091806.55741.cht@xxxxxxxxx>
- Mail-followup-to: Christian Taylor <cht@xxxxxxxxx>, zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050709.165213.74740823.Meino.Cramer@xxxxxx> <20050709151736.GA382@DervishD> <20050709.173732.41643671.Meino.Cramer@xxxxxx> <200507091806.55741.cht@xxxxxxxxx>
Hi Christian :)
* Christian Taylor <cht@xxxxxxxxx> dixit:
> Meino Christian Cramer wrote:
> > > 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]
> >
> > I pasted that to the commandline (zsh 4.2.5) and pressed <RETURN>. I got
> > zsh: error in flags
> I believe Raul meant:
> for option in ${(ko)options}; print ${(r:21:)option} $options[$option]
Yes ;) As I told Meino, probably my keyboard's fault XDDD
> Thanks for the tip Raul, I like this better than the "no" prefixes too.
You're welcome, but the tip is not such 'tip': since zsh is such
a darn good shell, it provides you with the 'options' associative
array (there are plenty of them, very useful information for the
script writers), it's just a matter of dumping it. Zsh IS great.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author