summaryrefslogtreecommitdiff
path: root/test/lsrc-hostname.t
blob: a69808dfee7363a0e28572bc0b33e12e02a35511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  $ . "$TESTDIR/helper.sh"

Should include entries that match hostname

  $ touch .dotfiles/example
  > mkdir .dotfiles/host-$(hostname)
  > touch .dotfiles/host-$(hostname)/h-example
  > mkdir .dotfiles/host-not-hostname
  > touch .dotfiles/host-not-hostname/nh-example

  $ lsrc
  /*/.h-example:/*/.dotfiles/host-*/h-example (glob)
  /*/.example:/*/.dotfiles/example (glob)

  $ lsrc -B not-hostname
  /*/.nh-example:/*/.dotfiles/host-*/nh-example (glob)
  /*/.example:/*/.dotfiles/example (glob)