about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-07-03 13:37:46 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-07-05 11:11:59 +0000
commitb58141c4cfa6fe6c0734d83e789529ae3f920b1f (patch)
tree1d35412d1d0fa5c020a8348786cc6c891cd03452 /Test
parentd1b4e60ff5e4a5829cfca28d50b779986ae794c2 (diff)
downloadzsh-b58141c4cfa6fe6c0734d83e789529ae3f920b1f.tar.gz
zsh-b58141c4cfa6fe6c0734d83e789529ae3f920b1f.tar.xz
zsh-b58141c4cfa6fe6c0734d83e789529ae3f920b1f.zip
46175/0002: Add a regression test for 46169: the RM_STAR_SILENT logic processes the current directory rather than the root directory.
The bug will be fixed in the next commit.
Diffstat (limited to 'Test')
-rw-r--r--Test/E01options.ztst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index a1b564327..053affeed 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -1428,7 +1428,8 @@ F:If this test fails at the first unsetopt, refer to P01privileged.ztst.
 
   if zmodload -e zsh/zpty 2>/dev/null; then
     for target_dir target_pattern in \
-      '.' '*'
+      '.' '*' \
+      '/' '/*'
     do
       before=`ls -a -- $target_dir`
       zpty subshell $ZTST_testdir/../Src/zsh -f
@@ -1446,5 +1447,6 @@ F:If this test fails at the first unsetopt, refer to P01privileged.ztst.
     ZTST_skip="the zsh/zpty module is not available"
   fi
   BEL=$'\a'
-0q:RM_STAR_SILENT
+0qf:RM_STAR_SILENT
 *>zsh: sure you want to delete all 15 files in ${PWD:h}/options.tmp \[yn\]\? ${BEL}
+*>zsh: sure you want to delete all <-> files in / \[yn\]\? ${BEL}