From kde-core-devel Fri Oct 12 21:20:51 2001 From: Olivier Chapuis Date: Fri, 12 Oct 2001 21:20:51 +0000 To: kde-core-devel Subject: Re: [PATCH] startkde and ksmserver X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100292181126267 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