From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3959 invoked by alias); 29 Oct 2013 08:44:22 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 3945 invoked by uid 89); 29 Oct 2013 08:44:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f174.google.com Received: from mail-ob0-f174.google.com (HELO mail-ob0-f174.google.com) (209.85.214.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 29 Oct 2013 08:44:20 +0000 Received: by mail-ob0-f174.google.com with SMTP id vb8so4870117obc.19 for ; Tue, 29 Oct 2013 01:44:18 -0700 (PDT) X-Received: by 10.60.99.71 with SMTP id eo7mr1345173oeb.61.1383036258467; Tue, 29 Oct 2013 01:44:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.33.73 with HTTP; Tue, 29 Oct 2013 01:43:38 -0700 (PDT) In-Reply-To: <526EFF76.3080002@codyps.com> References: <526EFF76.3080002@codyps.com> From: "Roberto A. Foglietta" Date: Tue, 29 Oct 2013 08:44:00 -0000 Message-ID: Subject: Re: Fwd: Patch submission To: Cody P Schafer Cc: crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00025.txt.bz2 2013/10/29 Cody P Schafer : > On 10/04/2013 08:29 AM, Roberto A. Foglietta wrote: >> >> - printf "${CT_LIBC_GLIBC_CONFIGPARMS}\n" > configparms >> + printf -- "${CT_LIBC_GLIBC_CONFIGPARMS}\n" > configparms >> > > This isn't portable. Is there a reason not to just do: > > + printf "%s\n" "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms > > ? > Hi Cody, yes it works, you are right. example code: a="--ciao"; printf "%s\n" "$a" && echo OK; printf "$a" 2>/dev/null || echo ERROR code output: --ciao OK ERROR Thanks, -- Roberto A. Foglietta mobile: (+39) 349.33.30.697 http://roberto.foglietta.name -- For unsubscribe information see http://sourceware.org/lists.html#faq