$ dirname="foo bar" $ cd $dirname $ pwd /foo $ cd / $ cd "$dirname" $ pwd /foo bar