On Fri, 2007-08-24 at 08:07 +0900, Junichi Uekawa wrote: > Hi, > > > pbuilder login does: > > > > ${CHROOTEXEC} bin/bash > > > > This starts bash as a normal interactive shell, not a login shell. > > This means that it can, for example, be suspended, with unpleasant > > results. bash's exec command allows setting the invoked program's 0th > > argument with the -a option, so it would be possible to start a login > > shell with: > > > > (${CHROOTEXEC} bin/bash -c 'exec -a -bash bin/bash') > > Hmm.. is adding '--login' option not enough?
The use of the "-" prefix is more general so if you wanted to support alternate login shells in future you could use something like: (${CHROOTEXEC} bin/bash -c "exec -a -$SHELL $SHELL") But so long as pbuilder always runs bash, the --login option would be more understandable. Ben. -- Ben Hutchings All extremists should be taken out and shot.
signature.asc
Description: This is a digitally signed message part