about summary refs log tree commit diff
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
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.
-rw-r--r--ChangeLog4
-rw-r--r--Test/E01options.ztst6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 30863e3f0..51c7fc00b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-07-05  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 46175/0002: Test/E01options.ztst: Add a regression test for
+	46169: the RM_STAR_SILENT logic processes the current directory
+	rather than the root directory.
+
 	* 46175/0001: Test/E01options.ztst: Add a unit test for the
 	RM_STAR_SILENT option.
 
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}