Fix missing ' for echo for r and julia

Gitee link #I83824
This commit is contained in:
Aoran Zeng 2023-09-21 14:56:44 +08:00
parent c1d4c7ce5f
commit 72ef94bac7

View File

@ -758,7 +758,7 @@ pl_r_setsrc (char* option)
if (xy_on_windows)
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
else
cmd = xy_strjoin(3, "echo ", file, " >> ~/.Rprofile");
cmd = xy_strjoin(3, "echo '", file, "' >> ~/.Rprofile");
chsrc_runcmd(cmd);
@ -767,7 +767,7 @@ pl_r_setsrc (char* option)
if (xy_on_windows)
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
else
cmd = xy_strjoin(3, "echo ", file, " >> ~/.Rprofile");
cmd = xy_strjoin(3, "echo '", file, "' >> ~/.Rprofile");
chsrc_runcmd(cmd);
chsrc_say_thanks(&source);
@ -821,7 +821,7 @@ pl_julia_setsrc (char* option)
"& echo ", file, " >> %USERPROFILE%/.julia/config/startup.jl");
else
cmd = xy_strjoin(4, xy_str_to_quietcmd("mkdir -p ~/.julia/config"),
";echo ", file, " >> ~/.julia/config/startup.jl");
";echo '", file, "' >> ~/.julia/config/startup.jl");
chsrc_runcmd(cmd);
chsrc_say_thanks(&source);