commit 4a12c1a1629ec18db06583ad0ac503e3c1e34605 parent d7f4c572cc1f740be5d8be89fd72045d48028175 Author: Jacob Pipkin <d4wnr4z0r@yahoo.com> Date: Sun, 13 May 2012 19:20:38 -0500 make sboconfig -l sort the output Diffstat:
| M | sboconfig | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sboconfig b/sboconfig @@ -50,8 +50,9 @@ show_usage () and exit (0) if exists $options{h}; show_version () and exit (0) if exists $options{v}; if (exists $options{l}) { - while (my ($key,$value) = each %config) { - print "$key=$value\n"; + my @keys = sort {$a cmp $b} keys %config; + for my $key (@keys) { + print $config{$key}=$config{$value},"\n"; } }