Make bash output redirection safer
This commit is contained in:
parent
afa328fc06
commit
b06ab834a5
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ bashrc_customize_environment() {
|
|||
}
|
||||
|
||||
bashrc_customize_shell_options() {
|
||||
# Prevent overwriting files by mistake with output redirection.
|
||||
set -o noclobber
|
||||
|
||||
local option
|
||||
for option in cdspell checkwinsize globstar histappend nocaseglob
|
||||
do
|
||||
|
|
Loading…
Add table
Reference in a new issue