Sunday, 1 February 2015

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

On Sun, 01 Feb 2015 12:01:34 -0000, Ron <beeb@woosh.co.nz> wrote:

> The dash error for this is better -as long as it still does it when
> being called from make.
>
> $ printf"Making dir...\n"
> /ADFS::Trav.$/home/bin/sh: 8: printfMaking dir...\n: not found
>
> put a space after printf and all is well.
>
> $ printf "Making dir...\n"
> Making dir...
> $
>
> Thats odd, only one \ required now.
> looks like he text is supposed to be inside ""
> Please disregard my last post regarding using \\
>
> Ron M.
>

Well, on my machine, printf appears to need double \\ from the RISC OS
CLI, but in bash, it works as expected (in interactive mode at least):

*printf "Hello world\n"
Hello worldn*
*printf "Hello world\\n"
Hello world
*bash
bash-4.2$ printf "Hello world\n"
Hello world
bash-4.2$

I'm not sure if the behaviour under the RISC OS CLI is a bug or not...

WPB

_______________________________________________
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