Also, You are using way to many quotes. Just write this: file_path="/some/where/Test Folder/" echo $file_path cd $file_path You already quoted the path once. There is no need for the quotes around the variable and there is no need for the single and double quotes around the path. Also, put in a pwd after the cd so you can see where you are as a test. Steve Cohen On Mon, 19 Jul 2004, calin wrote: > > Hello all. > > I know the following question is a dumb one, but I've tried to make a > script working and I'm stuck. > > I'll try to isolate the problem as follows. > > I have a script which at some moment during the execution, needs to cd. > So I assumed that the following would work: > > > file_path='"/some/where/Test Folder/"' > echo "$file_path" > cd "$file_path" > > But surprise: it didn't. Every time I try to run it it gives me > something like: > > > $ ./cding.sh > "/some/where/Test Folder/" > ./cding.sh: line 5: cd: "/some/where/Test Folder/": No such file or > directory > $ > > although the Test Folder exist, is in the right path (/some/where/Test > Folder) and it's permissions are 777. > > Any idea? > > TIA > > Calin Cosma > > > > --------------------------------------------------------------- > Incearca acum noul sistem de dating oferit de portalul acasa.ro > > - > : send the line "unsubscribe linux-admin" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html