Y
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
matja
811 days ago
Probably you are using zsh and need:
MULTIOS=1 > file
- zsh isn't POSIX compatible by default
link
pdimitar
811 days ago
I see. But in this case it's best to just memorize `truncate -s0` which is shell-neutral.
link
matja
812 days ago
Ok, we'll leave that a mystery then!
link