Introduction
Introduction Statistics Contact Development Disclaimer Help
annna-add-hashtag: force locale/collation for sorting tags - annna - Annna the …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 5f7c5d296fe782a48dd6871e614034596f851902
parent 1d52ebf6611ab67553d5871dd1913839614cb742
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 8 Feb 2020 19:24:13 +0100
annna-add-hashtag: force locale/collation for sorting tags
previously #bitreich-something and #bitreichhq was sorted weirdly.
Diffstat:
M annna-add-hashtag | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/annna-add-hashtag b/annna-add-hashtag
@@ -87,7 +87,7 @@ inserttag() {
printf "%s %s\n" "${tag}" "${memecacheuri}" >> "${hashtagdb}"
printf "tag '%s' added as '%s' to hashtags db.\n" "${tag}" "${memecach…
- sort -t ' ' -k1,1 "${hashtagdb}" > "${hashtagdb}.sort"
+ LC_ALL=C sort -t ' ' -k1,1 "${hashtagdb}" > "${hashtagdb}.sort"
mv "$hashtagdb.sort" "${hashtagdb}"
# keep permissions shared.
chown ':bitreich' "${hashtagdb}"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.