On Mon, May 09, 2011 at 02:56:28PM +0300, Sviatoslav Chagaev wrote: > On Mon, May 9, 2011 at 4:48 AM, Jacob Meuser <[email protected]> > wrote: > > On Mon, May 09, 2011 at 01:32:49AM +0300, Sviatoslav Chagaev wrote: > >> * sorted output looks cleaner, prettier; > >> * it's easier to find the variable you're looking for in a sorted > >> output; > >> * hierarchical variable names yet unordered? doesn't make sense; > >> * this way mixerctl's behaviour will be closer to other *ctl programs > >> which output variables in an ordered fashion (audioctl, sysctl, > >> wsconsctl). > > > > these are all matters of opinion, except for "hierarchical variable names" > > which is not technically the case here. > > > > Okay, but what about making mixerctl more similar to other *ctl? >
sysctl is a tree, while the mixer is not a tree. It's not either a linear bunch of strings. Sorting it doesn't make much sense imho. Furthermore, sorting mixctl as strings is easy with sort(1) so it's not absolutely necessary; while it would kill the widget order exposed by the driver. -- Alexandre
