[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] startkde and ksmserver
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2001-10-12 9:32:44
[Download RAW message or body]

> +# unset is POSIX but I am not sure that all *sh use this name
well, if it's posix, then the posix shells do. but there are lots of
non-posix shells around ...
> +unset XSM_RESTORE >& /dev/null
---------------------^^
this is a bash-ism ... use 2> instead. anyway, this does not really help
in some shells (try ash), as this only redirects the output of the command, 
not the output of the shell. this seems to be more effective (works at
least for bash, ash and solaris sh):

exec 9>&2 2>/dev/null
unset XSM_RESTORE
exec 2>&9


greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic