Sunday, 1 February 2015

Re: [gccsdk] make: File '-c' not found

In message <54CCFF8D.90204@gmx.com>
Duncan Moore <duncan.moore@gmx.com> wrote:

>
> On 31/01/2015 13:11, Duncan Moore wrote:
> > As to why \n is causing problems, I'm not sure. It looks like some weird
> > interaction between 'make' and 'printf'.
> >
>
> I'm wondering if it's due to 'make' calling exec() and then the argument
> list being manipulated. I seem to recall that it quotes both " and '.
> Maybe it's doing something with the \ of \n too, and that's messing
> things up.
>
> Duncan
>
I tried this out interactively with dash.
The dash builtins echo and printf require \\n to get newline otherwise a
literal \n is output.
but, echo \\
does do the expected thing and outputs a single \

However using this example from the dash manpage

{ printf " hello " ; printf "world\n" ; } > greeting

and the resulting file does have the &0A after "world"

I'm wondering now if the \ for standard output is getting lost in
termios.

Ron M.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment