[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Need help from bash experts... humm



On Tue, 2002-02-12 at 09:04, Alvin Oga wrote:
> 
> On Tue, 12 Feb 2002, Greg Murphy wrote:
> 
> > Greetings,
> > 
> > The following should work:
> > 
> > #!/bin/sh
> > sourcedir="/mount/windows/spaced name"
> > cp "$sourcedir"/* $target
> 
> i say that the above will barf on  windows filenames like 
> 
> "tom's proposal.doc" and  "2002 Budget: 1st quarter"

Both of those filenames _should_ be fine.  The double-quotes will allow
single quotes inside, and the colon will be fine too (although Windows
cannot create a filename with a colon in).

Ross
-- 
Ross Burton                                 mail: ross@burtonini.com
                                       jabber: rossburton@jabber.org
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



Reply to: