Return-Path: Received: from mail.cvg.de (mail.cvg.de [62.153.82.30]) by mail.openembedded.org (Postfix) with ESMTP id DCFF6610DC for ; Fri, 13 Dec 2013 16:27:21 +0000 (UTC) Received: from mail.cvg.de (mail.cvg.de [62.153.82.30]) by mailout-1.intern.sigma-chemnitz.de (8.14.4/8.14.4) with ESMTP id rBDGRFc7023353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Dec 2013 17:27:18 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-chemnitz.de; s=v2012061000; t=1386952039; bh=7ZjJU+BpqfsLd1XpZYqrVSquWwHcAx7ukjCKr9cDnjc=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender; b=pM9gPXtm373VE5Wt7Ro4ZdfBnroDeDIjhw7oz63IRTjA0dDMhbOduGLb6A4LlyEBA fa/DNzScj/lNlGlpOu2XXKmFFk/qjb0ooX66BuHcjQPp8y2+5ygA53t98CFD+USJWF cJQnnDx6A/Iic0jfnkH95ISfm1v6cjCf/XycprFQ= Received: from ensc-virt.intern.sigma-chemnitz.de (ensc-virt.intern.sigma-chemnitz.de [192.168.3.24]) by mail.cvg.de (8.14.4/8.14.4) with ESMTP id rBDGRBcg012024 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 13 Dec 2013 17:27:12 +0100 Received: from ensc by ensc-virt.intern.sigma-chemnitz.de with local (Exim 4.80.1) (envelope-from ) id 1VrVa2-0007ZZ-Ev for openembedded-core@lists.openembedded.org; Fri, 13 Dec 2013 17:27:10 +0100 From: Enrico Scholz To: openembedded-core@lists.openembedded.org References: <6122710ad05d4a2c1fa2d42fba3025cae6dab5ed.1386946335.git.kergoth@gmail.com> Mail-Followup-To: Enrico Scholz Date: Fri, 13 Dec 2013 17:27:10 +0100 In-Reply-To: <6122710ad05d4a2c1fa2d42fba3025cae6dab5ed.1386946335.git.kergoth@gmail.com> (Christopher Larson's message of "Fri, 13 Dec 2013 07:56:37 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Sender: Enrico Scholz X-DSPAM-Result: Innocent X-DSPAM-Probability: 0 X-DSPAM-Confidence: 1 X-Spam-Score: -4.9 X-Spam-Level: ---- X-Spam-Tests: AWL, BAYES_00, DKIM_ADSP_ALL, RP_MATCHES_RCVD, SPF_NEUTRAL, DSPAM_INNOCENT X-Scanned-By: MIMEDefang 2.74 Subject: Re: [RFC 1/2] os-release: add new operating system identification recipe X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 16:27:22 -0000 Content-Type: text/plain Christopher Larson writes: > + if eval "test -n \"\$$field\""; then > + eval "printf \"%s=%s\n\" \"\$field\" \"\$$field\"" I think, this can be expressed without the complicated quoting as eval val=\$$field if test -n "$val"; then printf '%s="%s"\n' "$field" "$val" Enrico