Hacker News new | ask | show | jobs
by pdimitar 812 days ago
Sure, but I just get an interactive prompt when I type `> file` and I honestly don't care to troubleshoot. ¯\_(ツ)_/¯
2 comments

Probably you are using zsh and need:

    MULTIOS=1 > file
- zsh isn't POSIX compatible by default
I see. But in this case it's best to just memorize `truncate -s0` which is shell-neutral.
Ok, we'll leave that a mystery then!