hi, i'm finding to solve on the parameter:
for example:
directory Value 1
root@value 1 > pwd
/home/user/root/value 1
root@value 1 > pwd | sed 's/ /\\ /g'
/home/user/root/value\ 1
root@value 1 > test="$(pwd | sed 's/ /\\ /g')"
root@value 1 > echo "$test"
/home/user/root/value\ 1
root@value 1 > cd "$test"
-bash: cd: home/user/root/value\ 1: No such file or directory
Why don't work? thanks