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

Re: [PATCH 2/4] Update sw_vers completion



> 2023/08/23 13:00, Shohei YOSHIDA <syohex@xxxxxxxxx> wrote:
> 
> - Use '--' double dashes instead of '-' single dash
>  Its manpage says "sw_vers is backwards compatible with previous versions
>  which expect options passed with a single dash"

Double dashes works only in the latest macOS (Ventura). If single
dash works in Ventura, isn't it better to keep using single dash
(at least while Monterey or older are widely used) ?

Usually, completion function need to support only the latest version
(of the OS or the command), but if it is easy to keep backward
compatibility then I think there is no reason not to do so.




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