tech-userlevel archive

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

Re: Weirdness in /bin/sh of 8.0



> (984)       PKGDIRLIST="$(pkgdirs_from_conf $PKGCHK_CONF $PKGDIRLIST)"
> 
> assigns an empty string to PKGDIRLIST...
> And then it has no work to do and proceeds to a regular exit.

I tried commenting out some stuff related to the -v option, and if I do
this, then it works:


verbose()
    {
    if [ -n "$opt_v" ] ; then
#	msg "$@" >&2
	msg "$@"
    fi
    }

Removed redirection to stderr for messaging in verbose mode.
If I redirect to /dev/tty, it still fails.
(Redirecting to stdout is not a good idea for this script, due to its
use of $() to catch results from functions)

Maybe the redirection isn't reset in some cases?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index