Powerlevel10k: why do I need ! (exclamation mark) after >> ?

Created on 2 Nov 2019  路  2Comments  路  Source: romkatv/powerlevel10k

Hi, I'm a newbie.
I've got a question.

echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
why do I need ! (exclamation mark) after >> ?

Most helpful comment

If you have no_clobber option set and the target file doesn't exist, >> will fail while >>! will succeed. In all other cases there is no difference.

P.S.

This isn't the right place to ask basic questions about zsh syntax. "What's the difference between >>! and >>" is a question suited for /r/zsh, stackoverflow or zsh-users mailing list.

All 2 comments

If you have no_clobber option set and the target file doesn't exist, >> will fail while >>! will succeed. In all other cases there is no difference.

P.S.

This isn't the right place to ask basic questions about zsh syntax. "What's the difference between >>! and >>" is a question suited for /r/zsh, stackoverflow or zsh-users mailing list.

@romkatv
I understood what you mean.

Actually, this is first time to create ticket in OSS projects for me.
From next time I will more consider which place is right to create issue.

Thank you so much!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedemengo picture fedemengo  路  7Comments

zemuldo picture zemuldo  路  4Comments

debo picture debo  路  5Comments

stevenguh picture stevenguh  路  6Comments

gigglearrows picture gigglearrows  路  4Comments