Make bash output redirection safer

This commit is contained in:
Fernando Schauenburg 2019-10-29 22:51:27 +01:00
parent afa328fc06
commit b06ab834a5

View file

@ -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