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.
--
Ph. Delavalade
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page