We have to undo it by grepping out any dotfiles. (Normal OSes don't
auto-set -A, but this is harmless there.)
Reported by Thomas Klausner. Fix suggested by Gabriel Filion.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
WVPASS bup init
WVPASS bup index $TOP/Documentation
WVPASS bup save -n compression -0 --strip $TOP/Documentation
-WVPASSEQ "$(bup ls compression/latest/ | sort)" "$(ls $TOP/Documentation | sort)"
+# 'ls' on NetBSD sets -A by default when running as root, so we have to undo
+# it by grepping out any dotfiles. (Normal OSes don't auto-set -A, but this
+# is harmless there.)
+WVPASSEQ "$(bup ls compression/latest/ | sort)" \
+ "$(ls $TOP/Documentation | grep -v '^\.' | sort)"
COMPRESSION_0_SIZE=$(du -s $D | cut -f1)
D=compression9.tmp