The output of ${!arr[@]} seems to vary between versions, and the bash manual does not specify any order to it.
e.g.:
$ bash --version
GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)
...
$ declare -A arr ; arr[a]=1; arr[A]=2; arr[b]=3; arr[B]=4; echo ${!arr[@]}
B A b a
$ bash --version
GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
...
$ declare -A arr ; arr[a]=1; arr[A]=2; arr[b]=3; arr[B]=4; echo ${!arr[@]}
A B a b
So sort them manually, to reduce noise on the file. I've previously never used ./everest snapshot and instead edited by hand to not get spurious diffs.
The output of
${!arr[@]}
seems to vary between versions, and the bash manual does not specify any order to it.e.g.:
So sort them manually, to reduce noise on the file. I've previously never used
./everest snapshot
and instead edited by hand to not get spurious diffs.