Fwd: Patch submission

Roberto A. Foglietta roberto.foglietta@gmail.com
Tue Oct 29 08:44:00 GMT 2013


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



More information about the crossgcc mailing list