This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
2013/10/29 Cody P Schafer <devel-lists@codyps.com>: > 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |