aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Georgi Georgiev <chutz@gg3.net> 2010-10-16 14:19:10 +0900
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-16 11:40:43 +0100
commit568fa370fb62e3eb9c45dd198391541abc271050 (patch)
tree399c971dd5c8e54de821de7435e0fdf2a69587e5
parent203a470e881a367029d3c82242305795a28b5c3e (diff)
downloadpaludis-568fa370fb62e3eb9c45dd198391541abc271050.tar.gz
paludis-568fa370fb62e3eb9c45dd198391541abc271050.tar.xz
"bash -c" has no need for the extra quotes around the command
-rw-r--r--paludis/repositories/e/e_installed_repository.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_installed_repository.cc b/paludis/repositories/e/e_installed_repository.cc
index b305e81..fe1ea82 100644
--- a/paludis/repositories/e/e_installed_repository.cc
+++ b/paludis/repositories/e/e_installed_repository.cc
@@ -205,8 +205,8 @@ EInstalledRepository::get_environment_variable(
else if ((ver_dir / "environment.bz2").stat().is_regular_file_or_symlink_to_regular_file())
{
std::stringstream p;
- Process env_process(ProcessCommand({"bash", "-c", "'( bunzip2 < " + stringify(ver_dir / "environment.bz2" ) +
- " ; echo echo \\$" + var + " ) | bash -O extglob 2>/dev/null'"}));
+ Process env_process(ProcessCommand({"bash", "-c", "( bunzip2 < " + stringify(ver_dir / "environment.bz2" ) +
+ " ; echo echo \\$" + var + " ) | bash -O extglob 2>/dev/null"}));
env_process.capture_stdout(p);
int exit_status(env_process.run().wait());
std::string result(strip_trailing_string(std::string(