Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Asking ZSH: How are you ?



    Hi Meino :)

 * Meino Christian Cramer <Meino.Cramer@xxxxxx> dixit:
> >  * Meino Christian Cramer <Meino.Cramer@xxxxxx> 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'. 
>   Oohh..damn...yes, of course! You are absolutely right...it must be
>   an .....hrrrm.... pixel defect on my....MONITOR! ;)

    Yes, I know, it happens to me, too, see below ;))))
 
> > 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 checked several times for....hrrrmmm.....PIXEL ERRORS....but found none.

    Probably my monitor had pixel errors, or maybe my keyboard
decided to omit certain keypresses I certainly did XDDDD

    Try this:

    for option in ${(ko)options}; print ${(r:21:}option} $options[$option]

    I missed the curly brace at the end of 'option' reference, sorry
O:) We better blame it on our monitors, keyboards... whatever XD
 
    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