> I see there is no way in urjtag to use arguments with white spaces. This 
> feature is useful for filenames in the "svf" command. With a little 
> patch, white spaces can be used if preceded with the escape character '\'.
> 
> Usage example:
> jtag> svf C:/path\ to\ file/PROGRAM.svf
> or
> jtag> svf C:\\path\ to\ file\\PROGRAM.svf

I agree, UrJTAG should support that. Extending your proposal, I'd add
quoting with " and ' as well. From what I've seen, readline can
automatically enclose paths like the one above with "":

    rl_completer_quote_characters = "\"";
    rl_filename_completion_desired = 1;
    rl_filename_quote_characters = " ";

Just the code in parse.c is missing in the same spot where you added the
\ escape.


Since I'm not familiar with readline, what else should/could be done to
address this topic? Up to now, I'd go for

1) add Gastón's backslash escape code to parse.c
2) add code in parse.c to quote with " and '
3) configure readline variables as shown above in jtag.c
   -> readline will add "..." with TAB-completion


Arnim

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to