blob: de638405e1aaca7465786253a32da1bba5caaf73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$ . "$TESTDIR/helper.sh"
Should exclude items with -x
$ touch .dotfiles/example
> touch .dotfiles/excluded
$ lsrc -x excluded
/*/.example:/*/.dotfiles/example (glob)
Should accept directory:file syntax
$ mkdir .other-dotfiles
> touch .other-dotfiles/included
> touch .other-dotfiles/excluded
$ lsrc -d .dotfiles -d .other-dotfiles -x other-dotfiles:excluded
/*/.example:/*/.dotfiles/example (glob)
/*/.excluded:/*/.dotfiles/excluded (glob)
/*/.included:/*/.other-dotfiles/included (glob)
|