diff options
author | Mike Burns <mike@mike-burns.com> | 2014-05-06 14:00:54 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-05-06 14:00:54 +0200 |
commit | c9d180900a3f8e54b456c9e71bfaac930bbc2478 (patch) | |
tree | 4e768ad20bb68db6a294906e551ba77fd6429b35 /test/mkrc-simple-output.t | |
parent | 7b7354dfe862c93fd8f496671b3e08c0a3f7f4d9 (diff) |
Bugfix: do not break out of the for loop
A `break` anywhere inside a `for` loop (even inside a `case`) will exit
from the innermost loop. Replace the `break` with a `:` to get the
desired effect.
Spotted by Pat Brisin.
Diffstat (limited to 'test/mkrc-simple-output.t')
-rw-r--r-- | test/mkrc-simple-output.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/mkrc-simple-output.t b/test/mkrc-simple-output.t index c18886c..9db263d 100644 --- a/test/mkrc-simple-output.t +++ b/test/mkrc-simple-output.t @@ -47,9 +47,22 @@ preserving the full path then symlink > cd .nested/deeply $ mkrc -v another_example + > cd ../.. Moving... '*/.nested/deeply/another_example' -> '*/.dotfiles/nested/deeply/another_example' (glob) Linking... '*/.dotfiles/nested/deeply/another_example' -> '*/.nested/deeply/another_example' (glob) $ assert_linked "$HOME/.nested/deeply/another_example" "$HOME/.dotfiles/nested/deeply/another_example" + +Making an absolute rc file + + $ touch .an_example + + $ mkrc -v $PWD/.an_example + Moving... + '*/.an_example' -> '*/.dotfiles/an_example' (glob) + Linking... + '*/.dotfiles/an_example' -> '*/.an_example' (glob) + + $ assert_linked "$HOME/.an_example" "$HOME/.dotfiles/an_example" |