whitespaces need to be controlled carefully. The variable assignment line is correct.
Make the 2nd line cd "$VMROOT" so that the variable value is kept as 1 string for the cd to execute. Brian John Mort wrote: > In a bash script, the following doesn't work: > > VMROOT=/var/lib/vmware/Virtual\ Machines/ > cd $VMROOT > > > But this does: > cd /var/lib/vmware/Virtual\ Machines/ > > I've tried putting the variable value into single and double quotes but that > approach doesn't seem to be working. Any pointers on how to make it work? > > _______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Sep 3 - Porkchop - The Areas of My Expertise Oct 1 - Ubikeys Oct 4 - Linux Fest Nov 5 - Releasing Open Source Software Dec 3 - TBD
