summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/utils.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 34163e55f..3a0656fc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-21 Daniel Shahaf <d.s@daniel.shahaf.name>
+
+ * unposted (cf. 41707): Src/utils.c: internal: Document the
+ count==0 case of checkrmall().
+
2017-09-20 Barton E. Schaefer <schaefer@zsh.org>
* 41736: NEWS, Src/exec.c: NO_INTERACTIVE_COMMENTS in $(...)
diff --git a/Src/utils.c b/Src/utils.c
index 70aad396a..0d71dda09 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2724,8 +2724,10 @@ checkrmall(char *s)
else if (count > 0)
fprintf(shout, "zsh: sure you want to delete all %d files in ",
count);
- else
+ else {
+ /* We don't know how many files the glob will expand to; see 41707. */
fprintf(shout, "zsh: sure you want to delete all the files in ");
+ }
nicezputs(s, shout);
if(isset(RMSTARWAIT)) {
fputs("? (waiting ten seconds)", shout);