Mailinglist Archive: yast-devel (78 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] r66442 - /trunk/add-on-creator/src/AddOnCreator.ycp
On Fri, Oct 14, 2011 at 03:35:17PM +0200, Jiri Suchomel wrote:
Dne Pá 14. října 2011 12:08:13 Ladislav Slezak napsal(a):
Dne 14.10.2011 11:25, jsuchome@xxxxxxxxxxxxxxxxx napsal(a):
- SCR::Execute (.target.bash, sformat ("cp %1 %2/", file_path,
tmpdir)); + SCR::Execute (.target.bash, sformat ("cp -- %1 %2/",
file_path, tmpdir));

You could also change %1 to '%1' + add String::Quote() when changing all
these commands...

Yes, I thought about it for first, but then I realized that some other
commands to which I pass the file path containing quote cannot handle it
anyway, so it would be futile.

What programms cannot handle the quotes? The shell parses the
string so this should not confuse any program.

Or wasn't .target.bash used in thoses cases?

ciao Arvin

--
Arvin Schnell, <aschnell@xxxxxxx>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB
16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups