Menu

Parsing strings in OptionC

2003-07-29
2003-07-30
  • Alexey Kostin

    Alexey Kostin - 2003-07-29

    Is it possible to parse string parameter (not one word) by OptionC

     
    • Charles Galambos

      Yep.  Just quote it on the command line. As
      'xyz 123'   or "xyz 123"

       
    • Alexey Kostin

      Alexey Kostin - 2003-07-29

      Have tried. Does not work. It seems shell removes quotes.

       
    • Charles Galambos

      I've seen this problem before and finally twigged whats happening.
      The problem is not caused by the RAVL option classes, but by the wrapper script for executables.   If you try running the program from the path QMake gives at the end of linking it should work fine.
      This really needs a bug report.

       
    • Alexey Kostin

      Alexey Kostin - 2003-07-30

      The simple solution is to add quotes in the las line of wrapper script
      exec ${RAVL_INSTALL}/lib/RAVL/${ARC}/bin/`basename $0` "$@"
      instead of
      exec ${RAVL_INSTALL}/lib/RAVL/${ARC}/bin/`basename $0` $@

       
    • Charles Galambos

      I've put the fix in, it works great!
      Thanks.

       

Log in to post a comment.