Le jeudi 06 juin à 18:42, Pierre Labastie a écrit :
> Sorry, I meant, put the lines from "_prompt_command()" to
> "PROMPT_COMMAND=..."
> into $LFS/root/.bashlogin (using copy/paste or an editor), and then
> chroot using the command on page 6.4.
>
> Pierre
Yes, I have understood ; but in /$LFS/ro
>On Thu, 6 Jun 2013 17:49:18 +0200
>Philippe Delavalade wrote:
>
> [snip]
>
> Thanks but I have just .bash_history in /root.
>
> Did I missed something ?
>
Just add it. Or put into $HOME/.bashrc . It doesn't matter if you don't
have the file RIGHT NOW, when you make it, bash will read and use
Le 06/06/2013 17:49, Philippe Delavalade a écrit :
> Le jeudi 06 juin à 15:48, Pierre Labastie a écrit :
>> Le 06/06/2013 14:50, Philippe Delavalade a écrit :
>> _prompt_command()
>> {
>> local status="$?";
>> if [ $status != 0 ]; then
>> echo -n "$status " 1>&2;
>
Le jeudi 06 juin à 15:48, Pierre Labastie a écrit :
> Le 06/06/2013 14:50, Philippe Delavalade a écrit :
> > Hi :-)
> >
> > I prefer a second message for another problem.
> >
> > On my debian host system, in files .bashrc, i use the following lines to be
> > informed from errors in a command :
> >
Le 06/06/2013 14:50, Philippe Delavalade a écrit :
> Hi :-)
>
> I prefer a second message for another problem.
>
> On my debian host system, in files .bashrc, i use the following lines to be
> informed from errors in a command :
>
> if [ "$PS1" ]; then
> _prompt_command()
> {
>loc
Hi :-)
I prefer a second message for another problem.
On my debian host system, in files .bashrc, i use the following lines to be
informed from errors in a command :
if [ "$PS1" ]; then
_prompt_command()
{
local status="$?";
if [ $status != 0 ]; then
echo -