I don't understand why I can't overwrite fic1. I'm on Ubuntu 24.04
[14:48]-[elouan@elouan-KLVL-WXX9]-[~/SYS/exo3/test]- $ echo "test1" > fic1.txt[14:49]-[elouan@elouan-KLVL-WXX9]-[~/SYS/exo3/test]- $ cat fic1.txttest1[14:49]-[elouan@elouan-KLVL-WXX9]-[~/SYS/exo3/test]- $ echo "test2" > fic1.txtbash: fic1.txt : impossible d'écraser le fichier existant[14:49]-[elouan@elouan-KLVL-WXX9]-[~/SYS/exo3/test]- $ cat fic1.txttest1[14:51]-[elouan@elouan-KLVL-WXX9]-[~/SYS/exo3/test]- $ ls -l fic1.txt-rw-rw-r-- 1 elouan elouan 6 sept. 13 14:49 fic1.txt
I tried in dash, it works fine, the file overwrites fine, but not in bash