summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordana <dana@dana.is>2025-05-16 12:06:39 -0500
committerdana <dana@dana.is>2025-05-16 12:11:50 -0500
commit0767fdaae34cd088ad12f081a2d95e298a43879b (patch)
treef1856651f7afad8506c122c17bc3c2e567b7ec41
parentunposted: NEWS: mention _shadow + mkshadow (diff)
downloadzsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar.gz
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar.bz2
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar.lz
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar.xz
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.tar.zst
zsh-0767fdaae34cd088ad12f081a2d95e298a43879b.zip
53626: tests: make `whence -s` test use `grep -c` instead of `wc -l`
fixes broken test on platforms like macos where `wc -l` output is padded
-rw-r--r--ChangeLog5
-rw-r--r--Test/B13whence.ztst4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c16e2dbde..01ca7f16f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-16 dana <dana@dana.is>
+
+ * 53626: Test/B13whence.ztst: make `whence -s` test use `grep -c`
+ instead of `wc -l`
+
2025-05-14 Bart Schaefer <schaefer@zsh.org>
* unposted: Src/params.c: fix silly bug with overloading of PM_UPPER,
diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst
index 5132c2c04..384dcceeb 100644
--- a/Test/B13whence.ztst
+++ b/Test/B13whence.ztst
@@ -33,6 +33,6 @@
)
1:whence deals with symlink loops gracefully
- whence -s =sh(:P) | grep '.->' | wc -l
-0:(workers/53524) whence -s doesn't print arrows for symlink-free paths
+ whence -s =sh(:P) | grep -c '.->'
+1:(workers/53524) whence -s doesn't print arrows for symlink-free paths
>0