Re: [Mondo-devel] Limitation on -S and -T arguments
Brought to you by:
bcornec
From: Bruno C. <Bru...@hp...> - 2006-10-24 22:30:15
|
Carol Anne Ogdin said on Tue, Oct 24, 2006 at 06:46:30AM -0700: > You wrote: "No. the quotes on the CLI are handled by the shell, not > mondoarchive." Don't you use the standard means of parameter recognition in > mondoarchive? When you've detected the -T parameter, doesn't your code then > scoop up the next word as the directory name? How would mondoarchive handle > "... -T my temp ..."? Wouldn't it see the "my" as the temporary directory > name and then balk at the unknown "temp" on the command line? (Sorry, I > haven't had the time to download the source and inspect that code myself; > I'm trying to get some systems built and shipped.) Please try that: touch toto touch "titi" touch 'tutu' touch "my toto" touch "my tutu" touch "'thathasquotes'" from a shell. Then you should understand better what happnes with quotes and shell. Then show us your script as I can't discuss without content, sorry. > Finally, you allude to "consequences" for having parentheses in filenames. > Yes, if one issues some commands, like an explicit ls (e.g., ls xyz), one > must "escape" the parent (e.g., ls Mondo\(Birch\)*), but what other > consequences do you see? I've already fixed crashes in mondo due to spaces. I generally advise people to avoid using strange chars in their filename, it's a good practice on Unix based systems. > For the nonce, I have replaced the "(" with "-" to eliminate that as a > source of any of the problems I experience. Seems safer. Bruno. -- Linux Profession Lead EMEA / Open Source Evangelist \ HP C&I EMEA IET http://www.mondorescue.org / HP/Intel Solution Center \ http://hpintelco.net Des infos sur Linux? http://www.HyPer-Linux.org http://www.hp.com/linux La musique ancienne? http://www.musique-ancienne.org http://www.medieval.org |