On 2018-04-02 11:29, Bas Zoutendijk wrote: > echo 'export PS1="You have chrooted into '$HOST' from $PS1"; exec \ > <dev/tty' | exec chroot $ROOT /bin/bash -i
This pipe is something of a Rube Goldberg device. Why not pass the variable directly: chroot $ROOT /usr/bin/env PS1="(chrooted to $HOST) $PS1" bash In fact I think I see a problem with your way: the chrooted shell sees a command like export PS1=You have chrooted into 'eden' from root which obviously cannot work. (No clue if that is why it breaks for Thelma, and no clue why it works for you :P) -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. To reply privately _only_ on Usenet and on broken lists which rewrite From, fetch the TXT record for no-use.mooo.com.