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

Re: Check if option given in short notation (e.g. -9) is set



Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> writes:

> Hello
> [[ -o "-9" ]] doesn't work. Is there any way to check option given in
> such format, besides holding an associative array that would assign
> long name to each short name?

Perhaps [[ $- = *9* ]] ?

-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



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