[Patch] Bashism in startkde

Thiago Macieira thiago at kde.org
Mon Jun 1 09:41:54 BST 2009


Sune Vuorela wrote:
>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)

I stand corrected then :-)

Thanks
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090601/e6025c93/attachment.sig>


More information about the kde-core-devel mailing list