Przeglądaj źródła

Do not sort keys when reading

For purpose of rewriting user's INI, we don't want to mess it up more
than is necessary.
Alois Mahdal 7 lat temu
rodzic
commit
1d59219fc3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/include/ini.sh

+ 1
- 1
src/include/ini.sh Wyświetl plik

@@ -90,7 +90,7 @@ _ini_lskeys() {
90 90
     # List keys from a section
91 91
     #
92 92
     local sct=$1    # section of interest
93
-    _ini_grepsec "$sct" | cut -d= -f1 | sort | uniq
93
+    _ini_grepsec "$sct" | cut -d= -f1 | awk '!x[$0]++'
94 94
 }
95 95
 
96 96
 _ini_maybe_expand() {