[Patch] Bashism in startkde

Sune Vuorela nospam at vuorela.dk
Mon Jun 1 09:13:01 BST 2009


On 2009-06-01, Thiago Macieira <thiago at kde.org> wrote:
> --nextPart2186971.jIeMmLFcJD
> Content-Type: Text/Plain;
>   charset="utf-8"
> Content-Transfer-Encoding: quoted-printable
>
> Armin Berres wrote:
>>|-KDE_SESSION_UID=3D$UID
>>|+KDE_SESSION_UID=3D$(id -ru)
>
> Isn't $() another extension? Shouldn't we use `` instead?

It depends on what you call "extension".
$() is posix shell, but afaik not supported by the original Bourne
Shell. No one uses Bourne Shell today though.

I just tested:

FOO=$(id -u)
echo $FOO

and I get the expected output in
bash
dash 
posh  
pdksh
ksh93
mksh
zsh

(And then I ran out of shells)

/Sune





More information about the kde-core-devel mailing list