I'm trying to create a directory which has space in name e.g.
when I fire
mkdir -p "user test" it works for me.
When I put
"user test" in variable mkdir fails, it creates
var="user test" mkdir -p $var
I also tried
mkdir -p "$var"
Can someone please suggest where I'm doing wrong ?