summaryrefslogtreecommitdiffstats
path: root/tests/bfs/color_ls.sh
blob: 37d088f8aafe90a4f6b03a6fabeabd18e989f623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clean_scratch
"$XTOUCH" -p scratch/foo/bar/baz
ln -s foo/bar/baz scratch/link
ln -s foo/bar/nowhere scratch/broken
ln -s foo/bar/nowhere/nothing scratch/nested
ln -s foo/bar/baz/qux scratch/notdir
ln -s scratch/foo/bar scratch/relative
mkdir scratch/__bfs__
ln -s /__bfs__/nowhere scratch/absolute

LS_COLORS="or=01;31:" invoke_bfs scratch/{,link,broken,nested,notdir,relative,absolute} -color -type l -ls \
    | sed 's/.* -> //' \
    | sort >"$OUT"

diff_output