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()
>      {
>        local status="$?";
>        if [ $status != 0 ]; then
>            echo -n "$status " 1>&2;
>        fi
>      }
>      PROMPT_COMMAND=_prompt_command
> fi
>
> So, the exit code is printed before the prompt in case of an error.
>
> I'd like to do so in chapter 6 of LFS but, as there is no .bashrc, I wonder
> where I could append this lines.
>
> Thanks for advice.
>
I haven't tried, but I would say that it could go in .bashlogin in 
/root. Then if you use the chroot command of 6.4, .bashlogin is sourced.

Pierre

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to