> There is a "sort" missing after "LC_ALL=C".
Whoops. Updated patch attached. Thanks!
-----------------------
-for type in man7/cdist-type__*.text; do
+for type in $(ls man7/cdist-type__*.text | LC_ALL=C sort); do
no_dir="${type#man7/}";
no_type="${no_dir#cdist-type}";
name="${no_type%.text}";
-----------------------
I dislike this solution. While this works in this particular case,
parsing of 'ls' is evil. Another proposal, consider this shell script:
#!/bin/sh
for file in * ; do
printf '>> %s\n' "$file"
done
Is output guaranted to be same for same files in same locale? If yes,
I would just export LC_ALL=C in debian/rules (or maybe it should be
exported by /usr/bin/dh?). If no, I think we need to patch /bin/sh.
Opinions?
--
Accept: text/plain, text/x-diff
Accept-Language: eo,en,ru
X-Keep-In-CC: yes
X-Web-Site: sinsekvu.github.io