$ . "$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) Should handle excludes with globs $ mkdir -p fresh/hola/chao > touch fresh/hola/chao/wo > touch fresh/hola/chao/nemo > touch fresh/hola/tossala > touch fresh/hola/s > touch fresh/s $ lsrc -d fresh -x 'hola/chao/*' -x s /*/.hola/tossala:/*/fresh/hola/tossala (glob) $ lsrc -d fresh -x 'hola/chao' -x s /*/.hola/tossala:/*/fresh/hola/tossala (glob)