Hi Alex,

On Sunday 01 April 2012 22:34:34 Alex Prutkov wrote:
> I've added basic echo and printf modules to BDSH, as a part of my
> GSoC-2012applications.
> They are somewhat limited and will be developed later with BDSH. Any
> comments are greatly
> appreciated, both for prints and applications.
> Several remarks/questions that raised during my work:
>  * According to BDSH argument passing mechanism. For now ---> \# func "a b
> c d" e
>    will leave us with 5 (per letter) arguments in argv, and not 2. Is it
> desired BDSH behavior,
>    or maybe its a wanted feature? For now, this is a cause for 'printf' not
> to deal with space-limited
>    format strings.
Last year, I added support for arguments with spaces, however, the syntax uses 
single quotation character instead of double quote. Currently, bdsh supports:

command 'argument with spaces'

a literal ' is added to the string with two consecutive quotes as in:

command 'Joe''s book'

It is implemented in uspace/app/bdsh/tok.c:

http://trac.helenos.org/browser/mainline/uspace/app/bdsh/tok.c#L140
http://trac.helenos.org/browser/mainline/uspace/app/bdsh/tok.c#L180

I've just also added this info to 
http://trac.helenos.org/wiki/UsersGuide/Shell

Hope this helps.

Regards,
Martin Sucha


_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to