On Fri, Aug 25, 2023 at 1:56 PM Jun T wrote: > > # TODO: Should this be static? Calling `system_profiler -listDataTypes` > takes > # about 0.07-0.08 secs on my machine. Does this list ever change (between > # different versions of OS X)? > _data_types=( SP{AirPort,Applications,Audio,...(snip)...,WWAN}DataType ) > # the dynamic alternative is: > #_data_types=( ${${(f)"$(_call_program path system_profiler -listDataTypes > 2>/dev/null)"}[2,-1]} ) > > At least on macOS Ventura (the latest), "system_profiler -listDataTypes" > gives somewhat different list of data types. And I think the time > required by this command is negligible (I can't notice any delay). > So isn't it better to use the 'dynamic alternative' in the above comment? > I think the dynamic alternative is better if possible. -- Shohei YOSHIDA(syohex@gmail.com)