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

List:       kde-devel
Subject:    Re: applnk changes
From:       Rob Kaper <cap () capsi ! com>
Date:       2001-04-18 22:55:20
[Download RAW message or body]

On Wed, Apr 18, 2001 at 11:32:06PM +0100, David Faure wrote:
> Simply port your script to standard /bin/sh.
> If you wonder what this looks like ... look at the "configure" script ;-)

It's not complicated:

#!/bin/sh
 
kdepass=`which kdepasswd`

if test "$kdepass" = "which: no kdepasswsd in (${PATH})"; then
        konsole -caption "passwd" -e passwd
else
        kdepasswd
fi

I'm not sure though whether which is available everywhere and if it always
returns the same upon failure.

Rob
-- 
Rob Kaper     | 'What? In riddles?' said Gandalf. 'No! For I was talking
cap@capsi.com | aloud to myself. A habit of the old: they choose the wisest
www.capsi.com | person present to speak to; the long explanations needed by
              | the young are wearying.' - "Lord of the Rings", JRR Tolkien
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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