From d2e4daba376dcb96c1cad5fd89413f154a8c4a10 Mon Sep 17 00:00:00 2001 From: Rebecca Meritz Date: Wed, 25 Oct 2017 23:46:43 -0400 Subject: Expand ~ in DOTFILES_DIRS Hat tip to fgatham for the `eval echo` tip. This means both `~` and e.g. `~dmr` work correctly. --- test/rcrc-tilde.t | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/rcrc-tilde.t (limited to 'test/rcrc-tilde.t') diff --git a/test/rcrc-tilde.t b/test/rcrc-tilde.t new file mode 100644 index 0000000..b3f98c1 --- /dev/null +++ b/test/rcrc-tilde.t @@ -0,0 +1,10 @@ + $ . "$TESTDIR/helper.sh" + +rcrc should accept a DOTFILES_DIR with a ~ instead of $HOME + + $ mkdir ~/.other-dotfiles + > touch ~/.other-dotfiles/o-example + + $ echo 'DOTFILES_DIRS="~/.other-dotfiles"' > alt-rcrc + $ RCRC=./alt-rcrc lsrc + /*/.o-example:/*/.other-dotfiles/o-example (glob) -- cgit v1.2.3