X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tests%2Fsource-parent-until.t;h=a6700bbc5f1a2f09842edc83edf997d78b687394;hb=2c8cfbcea8e7286649840d7ec98d7e9d5e1d45a0;hp=c02a312adb063748d34bde8aa5c8f25c6468006f;hpb=0bb85014e6bb4415ec19dd13ef7ae361a9f1e5b9;p=zsh-autoenv.git diff --git a/tests/source-parent-until.t b/tests/source-parent-until.t index c02a312..a6700bb 100644 --- a/tests/source-parent-until.t +++ b/tests/source-parent-until.t @@ -90,3 +90,19 @@ Look up to "/" (default). autoenv_source_parent_from_sub3: ENTERED_sub: PWD:sub3 from:sub to:sub3 done_sub3 + +Handles dirs with spaces. + + $ mkdir "dir with space" + $ echo "echo entered \$PWD\n" >| "dir with space/.autoenv.zsh" + $ test_autoenv_add_to_env "dir with space/.autoenv.zsh" + $ cd "dir with space" + entered */dir with space (glob) + +Handles dirs with spaces outside any root (should not hang). + + $ cd $CRAMTMP || exit + LEFT_root: * (glob) + LEFT_sub: * (glob) + $ mkdir "dir with space" + $ cd "dir with space"