From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris DiTrani Subject: Re: Stupid spaces Date: Tue, 20 Jul 2004 14:20:31 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1090347631.19848.11.camel@chris.livedata.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" To: scohen Cc: linux-admin@vger.kernel.org On Tue, 2004-07-20 at 13:55, scohen wrote: > Also, > > You are using way to many quotes. Just write this: > > file_path="/some/where/Test Folder/" > echo $file_path > cd $file_path > Did you actually try this? Doesn't work in my shell. I'm sure he tried this first and only got more complicated when it failed to work. In your above example $file_path is an unquoted string that turns into two args, '/some/where/Test' and 'Folder/', when expanded and passed to cd. CD