News for hackers. Stuff that matters.
Re:Ask HN: Have you created programs for only your personal ... by mkl on Thursday April 14, 2022 @06:47AM (#31025180)
On which OS? There it is piped, but I can't make it display a "%" any way (why would it?). I'm on Linux, using head from GNU coreutils.
Re:Ask HN: Have you created programs for only your personal ... by lobocinza on Thursday April 14, 2022 @07:14AM (#31025351)
Arch Linux. When using Zsh the last char is always a '%'. When using Bash it does no show a '%' but there's no line break. Possibly an weird interaction with my $PS1.
Re:Ask HN: Have you created programs for only your personal ... by mkl on Thursday April 14, 2022 @07:49AM (#31025608)
That's definitely a Zsh thing, showing that there was no newline: https://zsh.sourceforge.io/Doc/Release/Options.html#Promptin.... It's not to do with PS1 or PROMPT, or head.