Re: [lfs-support] About errors

2013-06-06 Thread Philippe Delavalade
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

Re: [lfs-support] About errors

2013-06-06 Thread Aleksandar Kuktin
>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

Re: [lfs-support] About errors

2013-06-06 Thread Pierre Labastie
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; >

Re: [lfs-support] About errors

2013-06-06 Thread Philippe Delavalade
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 : > >

Re: [lfs-support] About errors

2013-06-06 Thread Pierre Labastie
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

[lfs-support] About errors

2013-06-06 Thread Philippe Delavalade
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 -