Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [bug] :P modifier and symlink loops



On Wed 14 May 2025, at 09:54, Daniel Shahaf wrote:
> Thanks, pushed.

hi daniel,

this test you added fails on macos (it has the old-style wc where the
numbers are padded with spaces). no objections to this fix i assume?

dana


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




Messages sorted by: Reverse Date, Date, Thread, Author