New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: -vgprintf: warning: ignoring excess arguments, starting with ‘duration’ #1996
Comments
Probably coming from atuin/crates/atuin/src/shell/atuin.zsh Line 44 in 0639ff4
I'm unsure how that happens though, because testing on the same macOS version with a ZSH doesn't produce this for me and testing doesn't show it:
I see a few possibilities:
|
Logs ❯ echo $SHELL
/bin/zsh
-vgprintf: warning: ignoring excess arguments, starting with ‘duration’ and ❯ $SHELL --version
zsh 5.9 (x86_64-apple-darwin23.0)
-vgprintf: warning: ignoring excess arguments, starting with ‘duration’ ❯ which printf
/usr/bin/printf
-vgprintf: warning: ignoring excess arguments, starting with ‘duration’ |
That's not the same result as me, so I would say there is a clue there but I'm confused as to why this would be different. I don't even get the same error when calling it directly:
|
So which I do ❯ /usr/bin/printf -v duration %.0f 123
/usr/bin/printf: illegal option -- v
usage: printf format [arguments ...] but this cause issues ❯ printf -v duration %.0f 123
-vgprintf: warning: ignoring excess arguments, starting with ‘duration’ while ❯ $(which printf) -v
/usr/bin/printf: illegal option -- v duration %.0f 123
usage: printf format [arguments ...] So I am not sure why a direct call does not work :) I tried to alias alias printf=$(which printf) Now the error is after each command ❯ ls #mydotfile
alacritty Brewfile Brewfile.lock.json fzf git install.sh LICENSE macos nvim README.md run.sh skhd starship tmux vim vscode yabai zsh
/usr/bin/printf: illegal option -- v
usage: printf format [arguments ...]
buttype printf
printf is an alias for gprintf Could this be an issue? |
unalias to get ❯ type printf
printf is a shell builtin fix the issue |
What did you expect to happen?
Not to see a warning at every command I write
What happened?
I get this message at the end of all my commands:
-vgprintf: warning: ignoring excess arguments, starting with ‘duration’
Atuin doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: