Dollar expansion (Was: Registry editor)

Chris Howells chris at chrishowells.co.uk
Sun Apr 28 12:56:45 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 28 April 2002 5:33 am, Waldo Bastian wrote:

> you can now use
> 	hostname[$e]=$HOSTNAME
>
> And $HOSTNAME will be expanded at runtime.

Wow!

I'm just wondering for e.g. KMail -- if it wanted to grab the real name out of 
/etc/passwd -- e.g. the "Chris Howells" in the following line:

chris:x:1000:1000:Chris Howells,,,:/home/chris:/bin/bash

Is there anyway to do that via KConfig? Or would you need to write some kind 
of scrip to extract the name, stick it into a shell variable, and then get 
the variable expanded as you described above?

- -- 
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP key: http://chrishowells.co.uk/pgp.txt
KDE: http://www.koffice.org, http://edu.kde.org, http://usability.kde.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8y+ODF8Iu1zN5WiwRAr4DAKCGV6LfkZz5ztXvkQZpiXAguQnNBwCfYQrK
J7b52T14yK7sNV/5ELszctk=
=KOJQ
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list