Package: splashy
Version: 0.1.7
Severity: normal

Yo!

Occasionally (Can't reproduce it, but I've seen it on more than just my
machine) splashy won't start, but will complain about 'command not found: N'
ein splashy-init.  Sounds like some stupid shell bug, but I can't see it.

/bin/sh is bash.

Line 580 is here:
===================
get_scripts_wrapper() {
        unset scripts nscripts
        get_scripts "$1"
        #debug "Wrapper(): $1 = $nscripts"
        # Export them now since the function might be left due to
        # errors at any moment. They must be exported to be usable
        # across shells
        export scripts nscripts target_rl
        if test "$1" = S -o "$1" = s; then
                # Notice that /proc could not yet be mounted
                test ! -e /proc/1 && return
                # Only set it the first time we enter runlevel S
                if ! is_enabled "$target_rl_was_set" && "$PREVLEVEL" = N; then  
# <----------------
                        target_rl="$(sed 's/init\ \[\([Ss0-9AaBbCc]\)\].*/\1/' \
                          /proc/1/cmdline)"
                        test "$target_rl" = "$(cat /proc/1/cmdline)" -o \
                          "$target_rl" = S -o "$target_rl" = s -o \
                          -z "$target_rl" &&
                                unset target_rl && return
                        get_scripts "$target_rl"
                        #debug "Wrapper(): S + $target_rl = $nscripts"
                fi
        fi
}
===================

Should this be 'if test ...' and -a instead of &&? (Just guessing)

cheers
-- vbi


-- 
Available for key signing in Zürich and Basel, Switzerland
                    (what's this? Look at http://fortytwo.ch/gpg/intro)

Attachment: pgpt4Szs5Zotb.pgp
Description: PGP signature

Reply via email to