On Mon 2 Apr 2018 at 10:25:45 +0200, David Haller wrote: > You owe me a dollar! > > export PS1="$(chroot '$HOST') $PS1"; > ^
The text within the parentheses was meant as literal text, the chroot command is executed rightward of the pipe. I could just as well write echo 'export PS1="You have chrooted into '$HOST' from $PS1"; exec <dev/tty' | exec chroot $ROOT /bin/bash -i No dollars necessary. Sincerely, Bas -- Sebastiaan L. Zoutendijk | slzoutend...@gmail.com