i'm trying to print stdin without the trailing new line that appears after using cat, grep, awk etc. (Mac OS X zsh) Unfortunately, echo -n doesn't work, it prints some weird character.
Do you have any idea on the matter ? Thanks.
i'm trying to print stdin without the trailing new line that appears after using cat, grep, awk etc. (Mac OS X zsh) Unfortunately, echo -n doesn't work, it prints some weird character.
Do you have any idea on the matter ? Thanks.
From man zshoptions:
Add this to your .zshrc to change the behavior. And note that this is a feature by design, not a bug.
export PROMPT_EOL_MARK=''