# # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2023 Christos Margiolis # get_months_fmt() { rm -f in for i in $(seq 12 1); do printf "2000-%02d-01\n" ${i} | xargs -I{} \ date -jf "%Y-%m-%d" {} "${1}" >>in done } atf_test_case monthsort_english monthsort_english_head() { atf_set "descr" "Test the -M flag with English months" } monthsort_english_body() { export LC_TIME="en_US.UTF-8" cat >expout <expout <expout <expout <in <expout <