Open ZakariaElbouzkri opened 12 months ago
Hello, oh-my-bash by default noclobber in the bash use >| as a workarround or go into your local oh-my-bash installation and comment the following line out. https://github.com/ohmybash/oh-my-bash/blob/24bd7e71ad7a8c51eaeff001439a266daf992e3a/lib/shopt.sh#L9
Or you could just execute this set +o noclobber
to disable (toggle) noclobber for the current session.
Description: When working with the '>' redirection operator in the Oh-My-Bash extension if you provide a filename that already exists, the script exits with the following error message:
bash: examplefile: can overwrite existing file