From: Tom Cloyd Date: 2009-02-15T10:21:09+09:00 Subject: Re: simple ruby project layout question David Masover wrote: > 7stud -- wrote: >> Tom Cloyd wrote: >> >>> ".\script-name". When I finally caught the problem and flipped the >>> backslash, I felt pretty foolish. Not the first time, though! >>> >>> >> >> Back slashes are dangerous in strings because of all the escape >> sequences that can be used in strings. \s = space, so your command >> was interpreted as: ". cript-name". I'm guessing your system looked >> for a program named "." somewhere in your path, with the "cript-name" >> part being an arg for the "." program. >> > > If that were the case, '.' is an alias for 'source', which means it > would've taken a file called 'cript-name' in the current directory and > executed it. > > On the other hand, if those quotes were included, it would actually be > looking for a program named '. cript-name', as spaces are allowed in > filenames... > > Ah...so many ways to screw up. So little time. t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc@tomcloyd.com >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~