schroot:传递要执行的命令,就好像它在shell中一样

我想要做的事情如:

schroot -c name -u root "export A=3 && export B=4" 

但我得到的错误:

 Failed to execute “export”: No such file or directory 

换句话说,我希望能够在schroot环境中以编程方式执行shell命令。 什么是正确的方式来获得这种行为?

schroot bash -c“出口….

回声解决scheme是可能的:

 echo "export A=3 && export B=4" | schroot -c name -u root 

我使用svn / git buildpackaging bash这个行为

我认为,因为出口是一个内置的shell,你需要做bash export的工作。 再试一次,但用一个真正的命令。