1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

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.
This commit is contained in:
Daniel Shahaf 2020-07-03 13:37:46 +00:00
parent d1b4e60ff5
commit b58141c4cf
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View file

@ -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}