set -o noclobber
set -C (es equivalente al anterior)
overwrite: NOT ALLOWED
% set -C
% ll > 1
bash: 1: cannot overwrite existing file
% set | grep SHELLOPTS
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:moni
overwrite: ALLOWED
% set +C
% ll > 1
%
% set | grep SHELLOPTS
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:moni
No comments:
Post a Comment