/etc/debian_chroot is supported by the common shells, so setting the
prompt is automatic.  It's now kept up-to-date every time you enter
the chroot.  It's written by dchroot and schroot.

The alternative, passing in the environment, is not something I think
is a good idea.  It has a number of disadvantages:
- It "dirties" the environment; if present, it could cause altered
  behaviour of programs/scripts/makefiles that use it.
- It would clobber any existing CHROOT in the user's environment.

Since the advantage is purely cosmetic, I don't currently think the
advantages are sufficient to warrant changing things.

While this would be trivial to implement (it's a one-liner), I would
prefer to keep the current behaviour.


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

Attachment: pgpTFfqIJML2k.pgp
Description: PGP signature

Reply via email to