]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - tests/source-parent-until.t
Handle `setopt shwordsplit` (#89)
[zsh-autoenv.git] / tests / source-parent-until.t
index c02a312adb063748d34bde8aa5c8f25c6468006f..a6700bbc5f1a2f09842edc83edf997d78b687394 100644 (file)
@@ -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"