use sort with LC_ALL=C
We make sure that when we sort, we sort with `LC_ALL=C` as in: > LC_ALL=C sort ... Changed `bin/entry2csv.sh` VERSION from "1.2 2024-08-13" to "1.2.1 2024-08-17". Performed `make entry2csv` to test the above under macOS. Changed `bin/csv2entry.sh` VERSION from "1.2 2024-08-13" to "1.2.1 2024-08-17". Performed `make csv2entry` to test the above under macOS. Changed `bin/cvt-submission.sh` VERSION from "1.0.4 2024-08-11" to "1.0.5 2024-08-17". Changed `bin/gen-sitemap.sh` VERSION from "1.3.13 2024-08-05" to "1.3.14 2024-08-19". Changed `bin/new-dir.sh` VERSION from "1.3.1 2024-08-11" to "1.3.2 2024-08-17". Performed `make www` to test the above under macOS.
This commit is contained in:
1 parent
a18583bfbe
commit
5201a45561
5 files changed
+49
-49
No files matched your search
+4
-4
@@ -88,7 +88,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.3.1 2024-08-11"
|
||||
export VERSION="1.3.2 2024-08-17"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -393,12 +393,12 @@ if [[ -z $NOOP ]]; then
|
||||
# sort .year
|
||||
#
|
||||
if [[ $V_FLAG -ge 3 ]]; then
|
||||
echo "$0: debug[3]: about to: sort -u $DOT_YEAR -o $DOT_YEAR" 1>&2
|
||||
echo "$0: debug[3]: about to: LC_ALL=C sort -u $DOT_YEAR -o $DOT_YEAR" 1>&2
|
||||
fi
|
||||
sort -u "$DOT_YEAR" -o "$DOT_YEAR"
|
||||
LC_ALL=C sort -u "$DOT_YEAR" -o "$DOT_YEAR"
|
||||
status="$?"
|
||||
if [[ $status -ne 0 ]]; then
|
||||
echo "$0: ERROR: sort -u $DOT_YEAR -o $DOT_YEAR failed," \
|
||||
echo "$0: ERROR: LC_ALL=C sort -u $DOT_YEAR -o $DOT_YEAR failed," \
|
||||
"error code: $status" 1>&2
|
||||
exit 11
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user