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

List:       kde-core-devel
Subject:    Re: kmapnotify, LD_PRELOAD, (t)csh and aaarrgh! I'll die today! :-)
From:       Michael Matz <matz () ifh ! de>
Date:       2000-05-29 3:47:49
[Download RAW message or body]

Hi,

On Sun, 28 May 2000 tibirna@kde.org wrote:
> > Rik: I thought about an ugly hack: in krun, for calling the
> > KShellProcess. Look into $SHELL. If it contains "csh" somewhere, use the
> > syntax "set LD_PRELOAD=bla; program args", if not use 
> > "LD_PRELOAD=bla program args". Note that there is a ';' in the first case.
> > As I said ugly ;) But hey, I think Its Good Enough (TM) for most cases.
> > 
> 
> Shouldn't this work for bourne shells too? Less (checking) code.

% /bin/sh -c "set hallo=bla; echo \$hallo"

% /bin/sh -c "hallo=bla; echo \$hallo"
bla

Note: We need a ';' in both cases. (Forgot in my first mail)
For LD_PRELOAD we may also need export (or setenv in C-sh). Don't know
right now.


Ciao,
Michael.

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

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