Monday, 2 February 2015

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

On 02/02/2015 14:21, Ron wrote:
> I've been able to replicate this now by putting the coreutils printf in
> the path for the CLI to find.
> Firstly, there is an error in the printf binary where it objects to a \

Are you sure the error is in the printf binary?

> in the string and results in 'File '-c' not found'.
> It is not crucial to, but by using (RISC OS)
> set alias$-c ""
> The error reporting is then more helpful:
> File name 'printf \' not recognised

That suggests to me that the error occurs before printf is called.

> The key thing is that it can't handle a '\' at all in the string.
>
> Back to using dash and it's builtin printf, and though it works, it has
> a quirk but is workable.
>
> SHELL = dash
> dir :
> printf %b "Making dir...\\n"
> mkdir OBJECTS
>
> The format b tells it to resolve escape characters, and \\n is needed
> also.

It's interesting that that works. I'm not sure what 'make' does when
it's run from the dash shell. Since printf is builtin, does 'make'
bypass using exec()? Does anyone know if that's likely?

Duncan


_______________________________________________
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