summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordana <dana@dana.is>2025-01-02 17:06:34 -0600
committerdana <dana@dana.is>2025-01-02 17:13:04 -0600
commit98e486fb5642f04c0909d3cd487382f5901e984e (patch)
treeacc4ac6b7178acb6a31d5afae3bd60a4d5440d98
parent32cd93bcb04278a6a9c9d2e0af3e1d025841c6d4 (diff)
downloadzsh-98e486fb5642f04c0909d3cd487382f5901e984e.tar.gz
zsh-98e486fb5642f04c0909d3cd487382f5901e984e.zip
53297: Test/A08time: allow %nU/%nS result to be 0
-rw-r--r--ChangeLog2
-rw-r--r--Test/A08time.ztst2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cd29452a7..21dcd47e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2025-01-02 dana <dana@dana.is>
+ * 53297: Test/A08time.ztst: allow %nU/%nS result to be 0
+
* unposted: Completion/Zsh/Command/_zparseopts: update
completion per workers/53260
diff --git a/Test/A08time.ztst b/Test/A08time.ztst
index 4a41cc76a..071038d1f 100644
--- a/Test/A08time.ztst
+++ b/Test/A08time.ztst
@@ -25,7 +25,7 @@
( TIMEFMT='%nU %nS'; time (read -k3 -t0.1) )
1:TIMEFMT %nU and %nS are limited to microsecond precision
-*?[1-9][0-9]#000ns [1-9][0-9]#000ns
+*?(0|[1-9][0-9]#000)ns (0|[1-9][0-9]#000)ns
# SECONDS (after - before) must be greater than the elapsed time, but not much
# greater. 25% was picked arbitrarily as something that hopefully will prevent