Does bash really truncate output redirection files at opening?

前端 未结 0 1715
时光说笑
时光说笑 2020-12-29 03:13

From what I\'ve read, bash is supposed to truncate files when it opens them. However after I run the command echo hello > file1 | ls > file1 > file2, s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题