summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Fedorov <mistake.klg@gmail.com>2025-05-22 12:23:50 +0300
committerGitHub <noreply@github.com>2025-05-22 11:23:50 +0200
commit40c2a72e03b1df100b3937dd44a9754f17c06c6d (patch)
tree8838f59ecbdaadaee17992a5d0df88ab363b6f1e
parent881c8b78d3e3ade9bccfddb3e616842807d07a59 (diff)
downloadzsh-40c2a72e03b1df100b3937dd44a9754f17c06c6d.tar.gz
zsh-40c2a72e03b1df100b3937dd44a9754f17c06c6d.tar.bz2
zsh-40c2a72e03b1df100b3937dd44a9754f17c06c6d.zip
fix(history): handle HIST_STAMPS with whitespace in timestamp format (#13099)
Co-authored-by: Kirill Fedorov <kfedorov@ibsys.ru>
-rw-r--r--lib/history.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/history.zsh b/lib/history.zsh
index 35da57de2..781a0e9de 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -18,10 +18,10 @@ function omz_history {
print -u2 History file deleted.
elif [[ $# -eq 0 ]]; then
# if no arguments provided, show full history starting from 1
- builtin fc $stamp -l 1
+ builtin fc "${stamp[@]}" -l 1
else
# otherwise, run `fc -l` with a custom format
- builtin fc $stamp -l "$@"
+ builtin fc "${stamp[@]}" -l "$@"
fi
}