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

Re: False alarm (nonomatch and cshnullglob)



> Someone previously suggested that options should be heirarchical, or
> somehow otherwise related, so that (e.g.) "setopt nonomatch" would
> automatically imply "unsetopt nullglob cshnullglob".

Perhaps that would be nice but I'm not sure it worth the extra code it adds.

> The advantage to csh's scheme of having magic variable names for the
> options is that you can easily convert booleans to have more than two
> values, without changing the syntax of setting options in general and
> without losing the old set/unset boolean meaning.

It would not be difficult to add the setopt option=value syntax.  Options
are stored in a char array so this can be done without changing the array.
But I still do not see how can such a feature be used.

Zoltan




Messages sorted by: Reverse Date, Date, Thread, Author