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

List:       kde-core-devel
Subject:    Re: [PATCH] startkde and ksmserver
From:       Olivier Chapuis <olivier.chapuis () free ! fr>
Date:       2001-10-12 21:20:51
[Download RAW message or body]

On Fri, Oct 12, 2001 at 11:32:44AM +0200, Oswald Buddenhagen wrote:
> > +# 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.

Ah, So maybe the best is to just use "unset XSM_RESTORE".
On POSIX shell and others this work (bash, zsh, ash, ksh), fine.
On csh or tcsh it does nothing (unset "unset" only "local"
variables, unsetenv should be used), but any way startkde is
not csh compatible at all: the current startkde exit if KDEHOME
is not defined. Finally, an error message as "unset: command not found"
is not a bad thing.

Olivier

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

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