[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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() { 
            if [ $prompt_status != 0 ]
                    echo "[status $prompt_status]"
export PROMPT_COMMAND=status_after_prompt

Karl M. Hegbloom <karlheg@inetarena.com>
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: