Re: Failing postinst script with suidmanager
>>>>> "Carey" == Carey Evans <c.evans@clear.net.nz> writes:
Carey> 2) Use /usr/bin/zsh instead (in the #! line) and add the
Carey> following lines before the set -e:
Carey> emulate -R sh
Carey> setopt printexitvalue
Carey> bash doesn't seem to be able to do this.
It can be done like this:
status_after_prompt() {
prompt_status=$?
if [ $prompt_status != 0 ]
then
echo "[status $prompt_status]"
fi
}
export PROMPT_COMMAND=status_after_prompt
--
Karl M. Hegbloom <karlheg@inetarena.com>
http://www.inetarena.com/~karlheg
Portland, OR USA
Debian GNU 1.2 Linux 2.1.36 AMD K5 PR-133
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: