noclobber----防止文件被覆盖

来源:互联网 发布:云服务器端口8080作用 编辑:程序博客网 时间:2024/04/25 17:06

# set -o noclobber
# touch test
# echo "a" > test
ksh: test: file already exists
# set +o noclobber
# echo "a" > test
# cat test
a
0 0
原创粉丝点击