In a bash script I want to do that but it doesn't work
config.txt :
newdir="build/src"
script.sh :
#!/bin/bash
source config.txt
cd $newdir
: No file or folder of this type
I have this with bash +x script.sh
+ source config.txt
++ newdir=$'build/src\r'
+ cd $'build/src\r'
: Aucun fichier de ce type